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

Reminds me of a problem I ran into once where someone had wanted unique but short codes as identifiers for relatively small counts, and picked a substring of a UUID:

http://mattmitchell.com.au/birthday-problems-friendly-identi...



> However, the overall takeaway was: Don’t use the MongoDB Increment value as a Unique Identifier.

However, the overall takeaway should be, as always: don't use MongoDB. Period. Every time I learn something new about it I'm baffled about why people continue to use it.




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

Search: