loopbackio / loopbackio/loopback-connector-cloudant
FindById doesn't use Cloudant Read by Id method
Open
Nobody has claimed this yet.
bug
major
- Dominant language
- JavaScript
- Stars
- 18
- Forks
- 20
- PR merge metrics
- No merged PRs in 30d
Description
The FindById is not actually using Cloudant's Id Lookup method ('Read'), rather it uses a standard query (_find), which is 10x more expensive. Is there an option that uses a Read for the findById function?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the FindById entry point and the code that currently issues the Cloudant _find query. Read the Cloudant Read-by-Id method documentation and determine how it should be selected for findById; done means the requested path uses Read and its behavior is covered by the relevant connector tests, if present.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- databases
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100