Skip to content

Use getItem instead of iterate for small getItem array lookups #134

@scotttrinh

Description

@scotttrinh

Currently, even if you're only getting a single kv pair, if that lookup is in an array, it will iterate the whole database.

We should look into just returning a $q.all with the lookup of the exactly keys instead of skipping, or if the keys lookup is cheap, find some heuristic to know when it's cheaper to use iterate vs. multiple getItem calls.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions