4 ms·
Perhaps, but can't you just organize your objects by having a table for each type and adding a column as needed? it doesn't sound like such a big deal
by vasyainv 13y ago
Perhaps, but can't you just organize your objects by having a table for each type and adding a column as needed? it doesn't sound like such a big deal
- raverbashing 13y agoLooks like fun But why would I waste developer time doing that if I can only do db.table.insert(obj) - in MongoDB for example (obj is a JS object) Also, finding all objects with a field named 'field1' and value '3' is slower if you do that in a relational DB (and that's the simplest case)
- mayank 13y agoWhy on earth would that be slower in a relational db? That makes no sense, since indices in both nosql and relational dbs are variants of b-trees.
- raverbashing 13y agoWell, it's slower because of a join that exists in SQL (the relationship between your 'field/value' table and the entry. Apart from that, as you said indexes are similar. The fun thing about NoSQL skeptics is how they think of only the current scenarios they work with, and they won't believe you until they get burned by it. So be it.
- deleted 13y ago[deleted]
- vasyainv 13y agoWell, because presumably SQL databases have features you don't get with noqsl solutions.