| integer差了很大一块,可是guid和comb的数据确比integer好多了. 总体优势:Integer<Comb2<comb<GuID 2. Count(单位:毫秒): Integer GUID Comb Comb2 30 30 31 40 10 20 10 20 10 20 20 10 40 20 10 20 10 10 20 10 10 20 20 10 10 10 20 10 以下数据是在程序进行补测之后的数据(多出了6W多条数据) 30 60 80 70 290 71 60 70 20 70 60 70 20 111 60 70 30 100 71 70 20 110 70 71 311 60 70 80 211 170 60 70 20 120 60 70 总体来说还是integer比较有优势 comb,comb2,guid也相差不多,只不过不知道何故Integer和GUID在查询效率上不稳定.Comb,comb2确一直很稳定. 结论,在Integer最好的情况下,comb2,comb,Guid是Integer耗时的1~3倍,而comb2,comb,guid三种情况里,也属comb2最为稳定,也最有效率.
上一页 [1] [2] [3] |