News for hackers. Stuff that matters.
[dead]
Re:MongoDB queries don’t always return all matching documents by chris_wot on Wednesday June 08, 2016 @07:55AM (#11861566)
Your code enforces consistency and detects when a transaction fails the consistency rule rolls back the changes to the state when the transaction started? That's some great code I'm sure, but a lot of effort.

The only limitation on an SQL check constraint is that you cannot use columns in other tables.

As has been pointed about by many of us slow learners, it's far easier to understand constraints in SQL than it often is to dive into a code base.

Re:MongoDB queries don’t always return all matching documents by orf on Wednesday June 08, 2016 @08:43AM (#11861817)
> IN MONGODB YOU HAVE TO WRITE YOUR CONSTRAINTS IN THE CODE AND THAT IS NOT THE CASE WITH SQL.

You moron, that's not a good thing.

Re:MongoDB queries don’t always return all matching documents by dang on Wednesday June 08, 2016 @03:17PM (#11864815)
Please don't respond to a bad comment by making the thread still worse.