总体优势: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
以下数据是在程序进行补测之后的数据(多出了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]
Copyright @ 2007-2012 敏韬网(敏而好学,文韬武略--MinTao.Net)(学习笔记) Inc All Rights Reserved. 闵涛 E_mail:admin@mintao.net(欢迎提供学习资源)
鄂公网安备 42011102001154号
站长:MinTao ICP备案号:鄂ICP备11006601号-18