willholley opened a new issue #138: Package should prefer _selector filters over JavaScript filter functions URL: https://github.com/apache/incubator-openwhisk-package-cloudant/issues/138 Cloudant / CouchDB has supported using Query selectors as an [alternative to JavaScript filter functions](http://docs.couchdb.org/en/2.0.0/api/database/changes.html#selector) for over a year. Query selectors have a significant performance advantage over using JavaScript filters - they can be roughly an order of magnitude more efficient - and do not require users to inject a design document prior to reading changes. The OpenWhisk package should strongly push users towards using Query selectors in favour of JS functions. Essentially the changes would be: * use `filter=_selector` instead of asking users to specify a design doc/filter * make a `POST` request to `_changes` instead of `GET` * in the request body, include a `"selector"` field containing the Query selector to match documents against.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
