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

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

Add support for partitioned queries #448

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

Comments

@flimzy
Copy link
Collaborator

@flimzy 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

This comment has been minimized.

Copy link
Collaborator Author

@flimzy 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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.