Hacker News new | ask | show | jobs
by brodo 870 days ago
I encountered this once: If you use integer IDs, try to scale horizontally, and do not generate the IDs in the database, you'll get in deep trouble. The solution for us was to let the DB handle ID generation.
1 comments

Yes, but the only sane way to generate integer IDs is in the database.