I'm stuck with the following problem in couchdb. Imagine the following doc-structure
{name:"test",timestamp:12334567,value:335}
My task is to query all documents on a specific timeframe that have a value bigger than X. In SQL this would be something like
SELECT * FROM doc where timestamp>=X and timestamp < Y and value>Z
The value Z should be dynamic, so I can't just filter before emit.
I was already working with startkey & endkey, but this post How exactly is startkey and endkey working in CouchDB? helped me to understand that this was the wrong approach.
Can someone please give me aa hint how one could solve a problem like this in couchdb?
Thanks in advance.