Skip to content

Add getKey to IDBObjectStore #26

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

Closed
inexorabletash opened this issue Jun 19, 2015 · 0 comments
Closed

Add getKey to IDBObjectStore #26

inexorabletash opened this issue Jun 19, 2015 · 0 comments

Comments

@inexorabletash
Copy link
Member

For performance, as well as symmetry with IDBIndex, add getKey() to IDBObjectStore

  • You can probe a single key with get(key) but pay the cost to transport/deserialize the value and don't know which key in a range was found
  • You can check a range with count(query), but also don't find out the exact key
  • You can do openCursor(query) and simply not continue the cursor, with minor overhead cost
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant