Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Are there any edge cases or things to be aware of when using this, or is it pretty much plug&play? I'm thinking of using this in one of my projects.


The risk with an incrementing integer is that your database falls over then you can lose some IDs depending on how often you take backups. After you restore you need to make sure that whatever integer you start at is greater than the highest integer issued beforehand, which may be different to the highest integer in your restored DB. Otherwise you can have clients with the same ID.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: