[13:48:08] <sperry> I have a button that generates 100k unique 12 char alphanumeric strings and inserts them into the db. These need to be unique so I was planning on adding a unique constraint and inserting one at a time (and retrying any insert that fails to satisfy the unique constraint)
[13:48:10] <sperry> Anyway, I have a for loop that does the inserts, but I noticed my server response.send() - which is after the for loop - is being triggered before the the db count() is 100k. So are those inserts being done asynchonously in a queue?
[14:08:22] <sperry> got disconnected, did anyone reply to my question above? ^
[17:00:08] <ivarec> is it a bad practice to use the _id field to emulate a private key? My use case is to prevent Users from being created with the same username, which is unique in my system