Skip to content
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

getAll with limits #84

Open
SmetLeander opened this issue Mar 26, 2018 · 2 comments
Open

getAll with limits #84

SmetLeander opened this issue Mar 26, 2018 · 2 comments

Comments

@SmetLeander
Copy link

Hello,

I have an issue here where I need to get the last 2000 records from an indexeddb store. Since it's used for logging, the value on a record can be big. What's the best solution to do this. I tried putting an index on the primary key, and use a query with a between on the index, but it's really slow. Would it be possible to use a limit on the getall?

Thanks in advance!

@bramski
Copy link
Owner

bramski commented Mar 26, 2018

Can you clarify what's slow? The between query is just proxying to the indexed db api so I've a hard time understanding what would be slow there.

@bramski
Copy link
Owner

bramski commented Mar 26, 2018

Alternatively there is an old pull request: #63

I had asked the author for changes but he never made any fixes. You are more than welcome to complete his work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants