What's the Hi/Lo algorithm?

前端 未结 5 1800
面向向阳花
面向向阳花 2020-11-22 06:00

What\'s the Hi/Lo algorithm?

I\'ve found this in the NHibernate documentation (it\'s one method to generate unique keys, section 5.1.4.2), but I haven\'t found a goo

5条回答
  •  名媛妹妹
    2020-11-22 06:40

    In addition to Jon's answer:

    It is used to be able to work disconnected. A client can then ask the server for a hi number and create objects increasing the lo number itself. It does not need to contact the server until the lo range is used up.

提交回复
热议问题