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

Optimize query by reading partition key from payload #217

Closed
1 task done
jannyHou opened this issue Oct 7, 2019 · 1 comment
Closed
1 task done

Optimize query by reading partition key from payload #217

jannyHou opened this issue Oct 7, 2019 · 1 comment
Assignees
Labels

Comments

@jannyHou
Copy link
Contributor

jannyHou commented Oct 7, 2019

See parent story #214

Acceptance Criteria

Model Order has userId as its partition key.

  • Support providing the partitionKey in query, like Order.find({where: {somefield: 'somevalue', userId: 'auser',}})

    • In Cloudant.prototype.find(), if partitionKey is detected in the where clause, then invoke db.partitionedFind('auser', queryWithPartitionKeyExcluded)
    • Please note the partitionKey from options should override the one from where clause.
@dhmlau dhmlau added the 2019Q4 label Oct 7, 2019
@jannyHou jannyHou changed the title Optimize query with partition Optimize query by reading partition key from payload Oct 8, 2019
@jannyHou
Copy link
Contributor Author

closing as PR merged

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

No branches or pull requests

2 participants