IndexedDB performance

前端 未结 4 2031
一生所求
一生所求 2020-12-18 23:38

Can anyone point me to an article on, or preferably provide some experience of performance of IndexedDB (ideally in Chrome) - what is the fetch, insert and update performanc

4条回答
  •  醉话见心
    2020-12-18 23:50

    I had problems with massive bulk insert (100.000 - 200.000 records). I've solved all my IndexedDB performance problems using Dexie library. It has this important feature:

    Dexie has a kick-ass performance. It's bulk methods take advantage of a not well known feature in indexedDB that makes it possible to store stuff without listening to every onsuccess event. This speeds up the performance to a maximum.

    Dexie: https://github.com/dfahlander/Dexie.js

    BulkPut() -> http://dexie.org/docs/Table/Table.bulkPut()

提交回复
热议问题