Performance value of COMB guids

前端 未结 3 1848
野性不改
野性不改 2020-12-17 17:43

Jimmy Nilsson discusses his COMB guid concept here. This concept is popular in NHibernate, among other circles, for its supposed performance value over standard GUIDs which

3条回答
  •  无人及你
    2020-12-17 18:06

    Your code for generating new GUIDs isn't correct. For each row, it's creating a very different number (you call NEWID() for each row). You need to keep most of the GUID the same.

提交回复
热议问题