Hacker News new | ask | show | jobs
by kstrauser 1850 days ago
Sure, and it makes sense there: write a service that returns unique 64 bit ints and encapsulate the complexity inside that one location. That’s easier than making every `insert` in your app code have to do a `while not unique` loop.