IndexedDB
IndexedDB | |
---|---|
Indexed Database API | |
Abbreviation | IndexedDB |
Native name | Indexed Database API |
Status | First Public Working Draft |
Latest version | 3.0 11 March 2021[1] |
Preview version | Editor's Draft 11 March 2021[2] |
Organization | |
Committee | Web Applications Working Group |
Editors |
Previous editors
|
Base standards | |
Related standards | |
Domain | NoSQL databases |
Website | www |
The Indexed Database API (commonly referred to as IndexedDB) is a JavaScript application programming interface (API) provided by web browsers for managing a NoSQL database of objects. It is a standard maintained by the World Wide Web Consortium (W3C).[1]
As an alternative to the Web storage standard, IndexedDB can provide more storage capacity. Web storage has fixed limits per website, but IndexedDB limits are "usually quite large, if they exist at all".[5]
Use cases for IndexedDB include caching web application data for offline availability.[6] Some browser modules, such as devtools or extensions, may also use it for storage.
History
[edit ]Support for IndexedDB was added to Firefox version 4,[7] Google Chrome version 11,[8] Internet Explorer version 10,[9] Safari version 8,[10] and Microsoft Edge version 12.[11]
Web SQL Database was a prior API developed by Apple.[12] But Firefox refused to add support for it and argued against it becoming a standard because it would codify the quirks of SQLite.[13] [14] It was thus deprecated in favor of IndexedDB.[15]
IndexedDB 1.0 became a W3C Recommendation on January 8, 2015.[16] IndexedDB 2.0 became a W3C Recommendation on January 30, 2018.[17] [3] IndexedDB 3.0 was released as a First Public Working Draft on 11 March 2021 and remains as a Working Draft as of 3 December 2024[update] .[18]
Performance
[edit ]Because IndexedDB is running inside of the security sandbox of a browser, all operations have to go through various security layers which decreases the performance of IndexedDB. With IndexedDB 2.0[17] the getAll() method was added which allows to improve performance on bulk read operations.
References
[edit ]- ^ a b c d Web Applications Working Group (2021年03月11日). Alabbas, Ali; Bell, Joshua (eds.). "Indexed Database API 3.0". W3C. W3C First Public Working Draft. Web Applications Working Group. Retrieved 2021年05月15日.
- ^ Web Applications Working Group (2021年03月11日). Alabbas, Ali; Bell, Joshua (eds.). "Indexed Database API 3.0". W3C. Editor's Draft. Web Applications Working Group. Retrieved 2021年05月15日.
- ^ a b Web Applications Working Group (2018年01月30日). Alabbas, Ali; Bell, Joshua (eds.). "Indexed Database API 2.0". W3C. W3C Recommendation. Web Applications Working Group. Retrieved 2021年05月16日.
- ^ "Indexed Database API". 2015年01月08日. Retrieved 2022年04月21日.
- ^ "Working with IndexedDB". Google Inc. Retrieved 19 January 2019.
- ^ "Using IndexedDB". MDN. Mozilla. Retrieved 19 January 2019.
- ^ "IndexedDB - MDC Doc Center". Developer.mozilla.org. Archived from the original on 2012年05月26日. Retrieved 2011年02月18日.
- ^ "IndexedDB - Chrome Platform Status". IndexedDB - Chrome Platform Status. The Chromium Projects. 2012年05月21日. Retrieved 2021年05月15日.
- ^ IndexedDB, MSDN, 2012年03月14日, retrieved 2012年05月24日
- ^ "OS X Yosemite v10.10 § App Features". Apple Developers. Apple. 2017年07月09日. Retrieved 2021年05月15日.
- ^ "IndexedDB". Can I use... n.d. Retrieved 2021年05月16日.
- ^ Shankland, Stephen (2010年03月12日). "Consensus emerges for key Web app standard | Deep Tech - CNET News". News.cnet.com. Retrieved 2011年02月18日.
- ^ O'Callahan, Robert (2010年06月04日). "Well, I'm Back: Not Implementing Features Is Hard". Weblogs.mozillazine.org. Archived from the original on 2020年11月09日. Retrieved 2011年02月18日.
- ^ Ranganathan, Arun (2010年06月01日). "Beyond HTML5: Database APIs and the Road to IndexedDB – Mozilla Hacks - the Web developer blog". Mozilla Hacks – the Web developer blog. Retrieved 2021年05月21日.
- ^ "html5 - Why is Web SQL database deprecated?". Software Engineering Stack Exchange.
- ^ Web Applications Working Group (2015年01月08日). Mehta, Nikunj; Sicking, Jonas; Graff, Eliot; Popescu, Andrei; Orlow, Jeremy; Bell, Joshua (eds.). "Indexed Database API". W3C. W3C Recommendation. Web Applications Working Group. Retrieved 2021年05月16日.
- ^ a b W3C (2018年01月30日). "Indexed Database API 2.0 is now a W3C Recommendation | W3C News". W3C News. Retrieved 2021年05月16日.
{{cite web}}
: CS1 maint: numeric names: authors list (link) - ^ "Indexed Database API 3.0 publication history". W3C. 2024年11月07日. Archived from the original on 2024年12月03日. Retrieved 2024年12月03日.