getAllRecords()
This webpage demonstrates the benefits of the proposed getAllRecords()
IndexedDB method, which makes
it possible to retrieve multiple records' primary keys and values at once, minimizing the number of IDB read
operations, and allowing to read in batches, in both directions. Read the full explainer.
Use the buttons below to test reading many records from an IndexedDB store that's been initialized on the page. After clicking a button, the duration the read operation took is displayed below.
If your device is powerful, use the Performance tool in DevTools to simulate a slower CPU. See Throttle the CPU while recording.