Intent to Implement: IndexedDB v2: object store and index renaming
62 views
Skip to first unread message
Victor Costan
unread,
Aug 24, 2016, 8:15:34 PM8/24/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to blink-dev
pwn...@chromium.org,jsbell@chromium.orghttps://w3c.github.io/IndexedDB/
In the IndexedDB 2.0 specification, the name attribute of IndexedDB object stores (IDBObjectStore) and indexes (IDBIndex) can be modified during version change transactions. Attempting to assign the name attribute at any other time causes exceptions.
Web developers can reasonably expect to be able to rename IndexedDB object stores in order to improve their code's readability. Without native rename support, developers can only implement renaming by creating a new store, copying all the relevant data from the old store, and removing the old store. This approach results in large version change transactions, leading to awful page load times.