GitHub user sagelywizard opened a pull request:
https://github.com/apache/couchdb-couch/pull/4
Add view changes functionality
The changes in this repo are primarily for reading changes feeds.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/sagelywizard/couchdb-couch
view-changes-windsor
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/couchdb-couch/pull/4.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #4
----
commit 5e97c598569aace6e9baa6670b768898f02a031c
Author: benoitc <[email protected]>
Date: 2014-02-02T18:54:01Z
extract couch_httpd changes API in its own module
commit a391cf7d9046d0445534c690a0c0d55f32c6f71e
Author: benoitc <[email protected]>
Date: 2014-02-07T14:38:34Z
add supports of view changes in the _changes API
Now when the option `seq_indexed=true` is set in the design doc, the
view filter in _changes will use it to retrieve the results. Compared to
the current way, using a view index will be faster to retrieve changes.
It also gives the possibility to filter changes by key or get changes in
a key range. All the view options can be used.
Note 1: if someone is trying to filter a changes with view options when
the views are not indexed by sequence, a 400 error will be returned.
Note 2: The changes will only be returned when the view is updated if
seq_indexed=true
commit c567f7f57777d9a1a1ceedd58caf743208209c72
Author: benoitc <[email protected]>
Date: 2014-02-08T20:27:58Z
couch_httpd_changes: check removed keys from the view filter
Make sure to only emit deleted document when a deleted key is passed to
the view filter.
Conflicts:
src/couch_httpd_changes.erl
commit be5d00281266402152ebd50c197229081728e591
Author: Benjamin Bastian <[email protected]>
Date: 2014-08-22T08:51:47Z
Add preliminary version of view changes
commit 3596b7396c746891129573756d7d7a3084f90784
Author: Benjamin Bastian <[email protected]>
Date: 2014-08-22T10:46:43Z
Make feed=continuous work for view changes
commit 96d66c49f78269c5bc6e9ba8a16d61a0264d33a2
Author: Benjamin Bastian <[email protected]>
Date: 2014-08-22T11:08:53Z
Fix view changes feed=continuous
commit e310ab3109068965f0e48d9798623ebb9adf4cf2
Author: Benjamin Bastian <[email protected]>
Date: 2014-08-22T16:56:56Z
Add view filtering optimization to changes feeds
commit 09dfe7e2a0ca1cfe9927f7f7955fd72f6d67b566
Author: Benjamin Bastian <[email protected]>
Date: 2014-08-25T09:50:05Z
Add rev to view changes respose. See couch_mrview for corresponding changes
commit bfa09d515ace624785e476e294b6752ee61c0480
Author: Benjamin Bastian <[email protected]>
Date: 2014-08-26T08:34:21Z
Open view in changes start function rather than outside
commit 74e1d92475b5cd0767cc52870c2665e45ba436d8
Author: Benjamin Bastian <[email protected]>
Date: 2014-08-26T08:55:07Z
Make include_docs=true work for view changes
commit eac2aa8e972c109e842f3fd9c81564c9d5172270
Author: Benjamin Bastian <[email protected]>
Date: 2014-08-27T17:00:50Z
Refactor code for sanity and so the view changes handler can reuse code
better
commit db22efda0f85f6ed9ba2a68c008969856a69cab6
Author: Benjamin Bastian <[email protected]>
Date: 2014-08-28T16:10:15Z
Fix rebase. Squash later
commit 91fcd605061691ce97f3ec17775ed73d7477553a
Author: Benjamin Bastian <[email protected]>
Date: 2014-08-28T16:41:33Z
fix silly mistake
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---