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

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: