Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
indexdb is slow #118
Think I have it taken care of. Put together a simple read test, inserts 5k records and does a full table scan. Tested all 3 browser adapters:
TEMP: 10.44189453125ms WSQL: 44.31689453125ms IDB: 213.552978515625ms
So yeah, IndexedDB is taking way longer than the other two.
I did some digging and IndexedDB 2 has a new api,
TEMP: 10.4228515625ms WSQL: 34.050048828125ms IDB: 37.599853515625ms
IndexedDB 2 isn't supported by Edge but according to caniuse.com there's 80% user coverage for this feature. So we'll use the new API if it's there and fallback to the old one otherwise.
You'll see the improvement in