Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for partitioned queries #448

Closed
flimzy opened this issue Feb 28, 2020 · 1 comment
Closed

Add support for partitioned queries #448

flimzy opened this issue Feb 28, 2020 · 1 comment
Milestone

Comments

@flimzy
Copy link
Member

flimzy commented Feb 28, 2020

CouchDB 3.0.0 adds partitioning support, and doing a partition-specific query requires a different endpoint. https://docs.couchdb.org/en/stable/api/partitioned-dbs.html#db-partition-partition

@flimzy
Copy link
Member Author

flimzy commented Feb 28, 2020

I think the least intrusive way to handle this will be to add Kivik support for a _partition option. i.e.:

db.AllDocs(ctx, kivik.Options("_partition": "foo"))

Then add a new PartitionInfo or PartitionStats method to handle the the _partition/{id} endpoint (https://docs.couchdb.org/en/stable/api/partitioned-dbs.html#db-partition-partition)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant