Compared to other modern browsers, the delete performance of indexeddb records is very slow on webkit/safari. Here is a jsfiddle that demonstrates the issue. https://jsfiddle.net/pzur4mtb/3/ Using the same macbook pro, mojave 10.14.6, safari 12.1.2. On Chrome, the delete process takes around 2 seconds. On Safari, it takes upwards of 16 seconds. The issue can be replicated on all devices that support safari. (I tried to test on webkit archive directly, but it errors trying to load sqlite files)
This doesn't work for me on JSFiddle (SecurityError: IDBFactory.open() called in an invalid security context). Could you please upload the test here?
<rdar://problem/54010354>
Created attachment 375722 [details] A simple html/js page that demonstrates indexeddb performance.
Tested the page in Safari Technology Preview 100. Database initialised bulkPut() ========= 10000 PUT operations queued in 57ms bulkDelete() ========= 10000 DELETE operations queued in 35ms Put Transaction completed in 1427ms. Delete Transaction completed in 2176ms.