Kinto / kinto.js

An Offline-First JavaScript Client for Kinto.
http://kintojs.readthedocs.io/
Other
319 stars 72 forks source link

IDB insertions performance #870

Open leplatrem opened 5 years ago

leplatrem commented 5 years ago

Iterating on list in order to perform massive IndexedDB insertions is not efficient.

We should chain insertions instead for the browser to schedule the insertions better.

leplatrem commented 5 years ago

For the bulk insert in Collection.importChanges, maybe we should iterate in chunks instead. Modifying the storage adapter interface is less obvious. But maybe we could rely on loadDump() there too :) I'll investigate