3 ms·
When I was a developer on NHibernate, one of my favorite ID generators was something called HiLo. Each of the clients reserve a chunk of Lo numbers, and increm
by tehlike 9y ago
When I was a developer on NHibernate, one of my favorite ID generators was something called HiLo.
Each of the clients reserve a chunk of Lo numbers, and increment the Hi number. Basically, they would pre-allocate a chunk of id ranges, and this allowed good distributed id allocation performance, while somewhat keeping local ordering.
Client generated ids are very useful to do.
- tehlike 9y agohttp://nhibernate.info/blog/2009/03/19/nhibernate-poid-generators-revealed.html http://nhibernate.info/blog/2009/03/19/nhibernate-poid-gener... This was my attempt to explain different ID generators in NHibernate. While it slowly got overtaken by MS frameworks, for most people, it had special place.
- flavio81 9y agoYou were a developer on NHibernate? Thank you very much, it was a pleasure using NHibernate (many years ago). It was/is a very good ORM! And I used it extensively.
- tehlike 9y agoIt was the best years of my career. I learned so much more than i did through my formal CS education, I was still a student at the time.