I want to fetch last X minutes record from the couch base using N1Ql ,
I know how to do this in SQL but in NOSQl with couch base i am not getting any clue . Please suggest me how i can do this.
I want to fetch last X minutes record from the couch base using N1Ql ,
I know how to do this in SQL but in NOSQl with couch base i am not getting any clue . Please suggest me how i can do this.
I want to fetch last X minutes record from the couch base using N1Ql [...]
Do you mean all records added in the past X minutes? If so, according to this post Couchbase does not timestamp automatically: https://dba.stackexchange.com/questions/77108/couchbase-get-document-creation-date
It's best to add the timestamp yourself, and then it's just a simple task of reading all records with a timestamp in the last X minutes using a N1QL query. https://docs.couchbase.com/server/current/n1ql/n1ql-language-reference/datefun.html