I’m looking for a NoSQL database that allows queries that return records that fall in the specified range.
I’m not very good with the NoSQL nomenclature (as I’m still only researching whatever they will be viable) so I’ll explain it how I would do it in SQL.
What I’ll need to do, is search for records (let’s say forum posts), that are above a specific score. More or less something like this: SELECT * FROM posts WHERE score > 2.
The question being, when I’m using PHP, is it possible to do with any NoSQL database (key-value or wide column ones)? If it’s impossible with any, which NoSQL databases support such queries?
You may want to check out MongoDB. It’s popular1, and supports range queries:
Here’s how your
SELECT * FROM posts WHERE score > 2query would look like in Mongo:Further reading:
1 See: MongoDB : Production Deployments