lengbingling 发表于 2016-8-14 19:26:45

自动编号出问题了

data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAU0AAAB4CAYAAAB2MKBuAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAB19SURBVHhe7Z0LfBTVvcd/s0mgvETxUfqpWiNJCCGVKqIlaX2iaZLWC4rbVirxmcR7FUJr/FiueinNTW3RktiHSXwgSPWyloL1JiEarDU30Q+YW7Fhb2AX00pbtSqC8hCS7NxzZs7sTjazuzObx8xu/t/P53xmzv/855zNPH75n3PmIR08eFAGQRAEYQqXWBIEQRAmINEkCIKwAIkmQRCEBaQPD52gMU2CIAiTSNXV1SSaBEEQJpF69r9ni2i+9dZbuOZLT4lc4tLW5MVZ390mckSywc/T8847T+SIZCOe42vvmKYkJX4iCGJMYa9oupjoJHoiCGJMYXOkyZpP9EQQxJjC3qveKHKLkbLv+Isluz6Z8bGcEoBvLHWLNXPE8o9UHm07XhYpEUPD6j604h+vbzIfV3sngrKeETnzZJe+rSy7G85V1vmSE2k9nGhl8dC25U1HTQRZOVm3bfCItcHweiKV68uitaffPlJ90dpxAk6bCIq2v8OJtl/N7vdYfvrfo/dz+nHViOf42iua2c+KnDmyb9uH7sdniJyKZgtfamVmCa/XLG2b/+Q40dRO1mgnbniZ/uSPBPc32s6ojXj9nIYTRVPbX9H2ndH+j0V4XdG2MfKN1V6k32oniSeaszaJ3NDJvtWH7icyRU7FyGaEWT8j2n7b6dhbjiKd9EYnb/hJH45WbrSMhL4+s35Ow2miqSfSPjXan9rxikR4eTR/ozK9LVa5k0g80ZxtbSdm37xXrLHIcF3WgHw4vHw0aPO84UjRjHSSWrVraOV8ydF8Y22X6DhVNK0ex1jHSV+urRttE27j+XDM1OMUEk80c58TOfNk37QH3U/NHLSuR7PzpVmM6jFD26adjhPNSCdrtJM31omtLw9fjwT3iVYeTrT27cKJoqntf/1x4ITn9UQr40Qq17fFsVJ/rDadQOKJ5nm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9kFXn8dgQ0bgGPH4Fq6FK7LLxclziGwfTv62W+UpkxRf+NFF4mSxMbo+PJ/HloUqMcuOxE/8Vy/9Oz5EBkN0dRQ3gL09NOQ/X64+Pjn/PmQpk4VpaMPn7AKtLcjwJ8Zz8pSxTLJuuH648tFixNNuPQ+I+1PDJ0xK5p2MpqiqSHv34/+zZshNzYC06fDdeGFkC64ABJfTpggvIYf+ehRyJ2dSgq88Qbwz39CKixEyuLFSfsYpB3Hlxg9SDRtwO6LSt6zBwEhZDITMmnGDEU8cfHFcH3+88App8R1i498+DBw8CAC774L7Nih1v/226owM4FWhJpFl8kOiWZyQ6JpA067qAJdXYp4Yt8+pTvPhQ8nTgAnnwywrrzERFRZsrx85pmQ/vY3yNyHdbXljz9Wlso248ap22RnwzVzpiKWY/GRRxLN5Mb68QX+Hz1hTmVLZcXCAAAAAElFTkSuQmCC

使用后3位为自动序号,但是每次保存后,再重新打开新建记录,不是按前一个顺序。

云表小菜鸟 发表于 2016-8-16 10:01:02

解答:这是因为云端共享服务器是负载均衡的,云端共享用户众多,为了提高云端共享空间的效率。可以有两种办法解决这个问题:

      1. 不用系统的自动编号,自己写编号生成的方法。
      2. 使用本地版或者云端专享服务器版

那么为什么云端自动编号不做成连接的呢?
      云端的算法是每台服务器预先取100个号码段缓存着, 第一台服务器的号码是 1-100, 第二台服务器的号码就是101-200,依此类推,所以会出现编号超过两位数的情况。云端应用是这样的,最典型的例子就是-淘宝,订单不会保证编号连续,甚至都是使用时间戳来做订单编号。连续编号就意味着必须所有人排队挨个分配号码,在云端大并发的情况下,这是效率非常低。电商的订单,一天几千单甚至上万单,编号连续不连续,已经没有太大意义了。可能是大家平常用本地版系统用习惯了,强求订单编号的连续, 在互联网时代,订单编号只要唯一就行了。
页: [1]
查看完整版本: 自动编号出问题了