DevTools: Application Panel - IndexedDB view unusable with large data store. |
||||
Issue descriptionVersion: 52.0.2735.0 OS: Ubuntu 16.04 64bit What steps will reproduce the problem? 1. Run the attached HTML file, either from localhost or directly as file://. 2. Wait for the output below to show "Finished" 3. Once that is done, open up the DevTools 4. Go to the Application Panel 5. Under the IndexedDB display find the "Test" database and "Items" store. 6. Try to see the stored data and switch between pages. What is the expected output? To be able to see the data quickly and switch between pages and filter data. What do you see instead? Empty details for quite a while. They may eventually come through or sometimes fail out. Also "Start from key" say 900 doesn't work at all.
,
May 16 2016
,
Jul 29 2016
,
Nov 29 2016
I don't think the script is behaving as you expect.
The script queues up 10000 requests to open a new connection, start a transaction, and write a single record. It does so in a promise, and resolves the promise synchronously after the requests are mode but before any have completed.
In your sample, change:
tx.complete;
to:
tx.complete.then(() => console.log('complete: ' + i));
This "one connection and one transaction per record" approach is incredibly slow takes ~30 seconds on my machine. Once it's actually complete, if I switch to the Application tab the records are available immediately.
|
||||
►
Sign in to add a comment |
||||
Comment 1 by dgozman@chromium.org
, May 16 2016Status: Assigned (was: Untriaged)