loopbackio / loopbackio/loopback-connector-cloudant

FindById doesn't use Cloudant Read by Id method

Open
#213 8 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.