javascript - IndexedDB - Detect If Indexing -


i have scenario initial use of web application may require ~2k records downloaded , stored in indexeddb offline usage. in testing, performance seems quick once records loaded , indexed. however, there period it's indexing , unresponsive during time. understandable, there way find out if indexeddb "is indexing" or extent? can't seem find in indexeddb documentation. provide better user experience if aware of that.

there's indeed nothing in spec being able observe indexing; it's intended happen behind scenes, , observable when complete (e.g. if transaction commits or aborts due key constraint error in existing data). if notice particular browsers becoming unresponsive when new index being created should file bugs against browser(s).

in chrome, @ least, createindex() call should "instant", , behind scenes index populated asynchronously walking on values in object store compute index entries. happens in same process , thread createindex() call made , compete other activity on same thread (e.g. see animations slow down if don't prioritize work appropriately).


Comments

Popular posts from this blog

amazon web services - S3 Pre-signed POST validate file type? -

c# - Check Keyboard Input Winforms -