kinto.js icon indicating copy to clipboard operation
kinto.js copied to clipboard

IDB insertions performance

Open leplatrem opened this issue 6 years ago • 1 comments

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 avatar Oct 31 '18 15:10 leplatrem

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

leplatrem avatar Nov 01 '18 11:11 leplatrem