Using /_changes?filter=_design , I can get all the changes for the project documents.
/_changes?filter=_design
How do I get all changes for documents only?
Is there such a thing as /_changes?filter=_docs_only ???
/_changes?filter=_docs_only
There is no built-in filter for this. You will need to write your own filter function ( http://couchdb.readthedocs.org/en/latest/couchapp/ddocs.html#filterfun ) that excludes project documents (check the _id document for "_design/" , etc .. ) from the feed. You then refer to this filter function when you request a change feed ( http://couchdb.readthedocs.org/en/latest/api/database/changes.html?highlight=changes ). However, most applications do not come across this too often, as project documents are usually updated only when the application changes.
_id
"_design/"
It would probably be more efficient to implement this filter on the client side instead of pushing all your changes to the couchjs process (always inefficient). As your application goes through changes, just check if there is a project there.
Greetings.
Source: https://habr.com/ru/post/969463/More articles:Checking for a resource file - c #Multiple file download managers in list view + progress / pause / resume android - androidWPF - resource check exists without handling structured exceptions - c #Zend 2 :: easy to get path to shared folder or basePath () in controller action - phpzend framework 2 access to the base path in the controller - zend-framework2Cordoba add platform - Error executing 'ant' command - androidEntity Component System Designs - c ++ 11flatZip in RxJava - javaAlways use a ViewModel template in MVC? - c #clojure liberator - return json from put request - clojureAll Articles