Saturday 20 February 2016

Do you trust unique field indexes on the database?

For example if a field is indexed to be unique, do you let the db do its thing and prevent a new write of a document with the same field (in turn popping up an err in the callback), or do you explicitly check for the existence of a collision in your API?

Submitted February 20, 2016 at 03:35PM by -proof

No comments:

Post a Comment