Query for list of created/modified/deleted documents
We're looking to write a client application that will lazily load all documents from a bucket at startup (using pagination) and store them in an internal dictionary. Once all the documents have been loaded, we want to periodically updated the dictionary with documents that have been created, modified, or deleted since the initial load.
Are there any recommendations to writing a View that only returns documents that have been created/modified/deleted since a certain time? I can see us storing a last modified time with each document and using that as the key in a View map function. Just curious if there were any other methods we could consider.
Or, is there anything like the _changes API that CouchDB supports?