What is the syntax on finding an array value matching some key? E.g. given a user with field "favFoods":[String], how do I determine that pizza is in there?
Re:Why You Should Never Use MongoDB
by jessedhillon on Monday November 11, 2013 @10:14PM
(#6715627)
select ... where "pizza" in person -> favFoods
Re:Why You Should Never Use MongoDB
by jessedhillon on Tuesday November 12, 2013 @03:29AM
(#6716501)
Sorry I'm stupid, I was thinking Python
select ... where person -> favFood in ("pizza")
SELECT json_data FROM people WHERE json_data->'age' > 15
vs
db.people.find( { age: { $gt: 10 } } )
Personally, I prefer the postgres syntax. It's much clearer. I also don't buy your claims below about performance. Can you provide a real benchmark? Are you running with the safeties off meaning you lose data?