Skip to content

Question: Filter by indecies #255

@blouflashdb

Description

@blouflashdb

Is it faster if I do filtering by properties that are a primary or secondary index?

There is already a built in way to filter fast by the documents KvId via startId and endId but I dont seem to find anything that allows something like this using denokvs build in start and end of list

I would love to do something like this with this awesome library.

const result = await db.users.getManyBySecondaryOrder("age", {
  startId: 18,
  endId: 20
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions