Ability to get many items (aka. getItems())
See original GitHub issueAfter doing some performance measurements on my app I notice I suffer a lot from doing this:
localForage.getItem('all_ids', function(ids) {
_.each(ids, function(id) {
localForage.get(id, function(value) {
...
});
})
})
This is causing a lot of excess work for the browser if the list is long (e.g. 1,000+).
I know the localStorage spec doesn’t have support getItems()
but in most cases IndexDB is supported and it appears to have low level support for getting multiple keys which could hopefully reduce the overhead in total.
For the localStorage fallback, this would be trivial to wrap up with a for loop of kinds.
Issue Analytics
- State:
- Created 10 years ago
- Comments:28 (20 by maintainers)
Top Results From Across the Web
Parse outputs('Get_items_2')?['body/value']
Solved: Hello, so I've got a Get List with a filter that should give me only 1 ... inside this true branch, assign...
Read more >DynamoDB Python Boto3 Query Cheat Sheet [14 Examples]
This cheat sheet covers the most important DynamoDB Boto3 query examples that you can use for your next DynamoDB Python project.
Read more >Arrays and collections in Power Automate, 1 awesome post
Today I was asked about how arrays (aka collections) work in Microsoft Flow. In this post I will shed some light on arrays...
Read more >Super Simple flow to get more than 5000 SharePoint Items
Super easy method to get more than 5000 items from a SharePoint list using Power Automate with incredible performance.
Read more >How to find the size of localStorage - Stack Overflow
The same code in multiple lines for reading sake ... You can get the current size of the local storage data using the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@thgreasi wrote in #291 an API I like for these multi-item calls:
How about:
If getItems() / setItems() are going to be implemented by localforage at some point, then something like the 2nd example might actually have to be used by some drivers.
Yes, it would be convenient. Please consider adding that feature. :godmode: