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

Model.findById - Read from Replica #672

Open
AV25242 opened this issue Aug 23, 2022 · 1 comment
Open

Model.findById - Read from Replica #672

AV25242 opened this issue Aug 23, 2022 · 1 comment
Assignees
Labels
P1 Must Have
Milestone

Comments

@AV25242
Copy link
Contributor

AV25242 commented Aug 23, 2022

Enhance model methods backed by KV operations to support reading from replicas

Model.findById uses collection.get(key); under the hood which fetches the document from Couchbase datastore's active node.
We need to enhance this by adding a findOption replica by default replica will be fault (the behavior that exists today) but when set to true findById should be able to attempt to get a document from the replica in lieu of document not found in the active node.

@AV25242 AV25242 added the P1 Must Have label Aug 23, 2022
@AV25242 AV25242 added this to the Ottoman 2.1.0 milestone Aug 23, 2022
@AV25242
Copy link
Contributor Author

AV25242 commented Aug 23, 2022

This is the ticket once Replica read is made available in Node.js 4.1.x

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

No branches or pull requests

2 participants