From Surf Wiki (app.surf) — the open knowledge base
IndexedDB
JavaScript application programming interface
JavaScript application programming interface
| Field | Value | ||
|---|---|---|---|
| title | IndexedDB | ||
| long_name | Indexed Database API | ||
| native_name | Indexed Database API | ||
| native_name_lang | en | ||
| status | First Public Working Draft | ||
| year_started | |||
| first_published | |||
| version | 3.0 | ||
| version_date | 11 March 2021 | ||
| preview | Editor's Draft | ||
| preview_date | 11 March 2021 | ||
| organization | {{Plainlist | ||
| * Mozilla<ref name | "standard-v2" / | ||
| * Oracle<ref name | "standard-2015" | ||
| committee | Web Applications Working Group | ||
| editors | {{Plainlist | ||
| * Ali Alabbas<ref name | "standard" / | ||
| * Joshua Bell<ref name | "standard" / | ||
| {{Collapsible list | title | Previous editors | |
| base_standards | {{Plainlist | ||
| related_standards | {{Plainlist | ||
| abbreviation | IndexedDB | ||
| domain | NoSQL databases | ||
| website |
- W3C
- Microsoft
- Mozilla
- Oracle
- Ali Alabbas
- Joshua Bell
- Nikunj Mehta
- Jonas Sicking
- Eliot Graff
- Andrei Popescu
- Jeremy Orlow
- HTML DOM
- File API
- Infra Standard
- JSON
- Storage Standard
- HTTP cookie
- Web SQL Database
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).
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".
Use cases for IndexedDB include caching web application data for offline availability. Some browser modules, such as devtools or extensions, may also use it for storage.
History
Support for IndexedDB was added to Firefox version 4 (March 2011), Google Chrome version 11, Internet Explorer version 10, Safari version 8, and Microsoft Edge version 12.
Web SQL Database was a prior API developed by Apple. But Firefox refused to add support for it and argued against it becoming a standard because it would codify the quirks of SQLite. It was thus deprecated in favor of IndexedDB.
IndexedDB 1.0 became a W3C Recommendation on January 8, 2015.{{Cite web|url=https://www.w3.org/TR/2015/REC-IndexedDB-20150108/|title=Indexed Database API|date=2015-01-08|access-date=2021-05-16|publisher=Web Applications Working Group|author=Web Applications Working Group|website=W3C|version=W3C Recommendation |editor-first1=Nikunj|editor-last1=Mehta |editor-first2=Jonas|editor-last2=Sicking |editor-first3=Eliot|editor-last3=Graff |editor-first4=Andrei|editor-last4=Popescu |editor-first5=Jeremy|editor-last5=Orlow |editor-first6=Joshua|editor-last6=Bell |editor-first=Ali|editor-last=Alabbas |editor-first2=Joshua|editor-last2=Bell
Performance
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 the getAll() method was added which allows to improve performance on bulk read operations.
References
References
- Web Applications Working Group. (2021-03-11). "Indexed Database API 3.0". Web Applications Working Group.
- Web Applications Working Group. (2021-03-11). "Indexed Database API 3.0". Web Applications Working Group.
- (2015-01-08). "Indexed Database API".
- "Working with IndexedDB". Google Inc..
- "Using IndexedDB". Mozilla.
- "IndexedDB - MDC Doc Center". Developer.mozilla.org.
- (2012-05-21). "IndexedDB - Chrome Platform Status". The Chromium Projects.
- (2012-03-14). "IndexedDB". MSDN.
- (2017-07-09). "OS X Yosemite v10.10 § App Features". Apple.
- (n.d.). "IndexedDB".
- Shankland, Stephen. (2010-03-12). "Consensus emerges for key Web app standard | Deep Tech - CNET News". News.cnet.com.
- (2010-06-04). "Well, I'm Back: Not Implementing Features Is Hard". Weblogs.mozillazine.org.
- (2010-06-01). "Beyond HTML5: Database APIs and the Road to IndexedDB – Mozilla Hacks - the Web developer blog".
- "html5 - Why is Web SQL database deprecated?".
- W3C. (2018-01-30). "Indexed Database API 2.0 is now a W3C Recommendation {{!}} W3C News".
- (2024-11-07). "Indexed Database API 3.0 publication history".
This article was imported from Wikipedia and is available under the Creative Commons Attribution-ShareAlike 4.0 License. Content has been adapted to SurfDoc format. Original contributors can be found on the article history page.
Ask Mako anything about IndexedDB — get instant answers, deeper analysis, and related topics.
Research with MakoFree with your Surf account
Create a free account to save articles, ask Mako questions, and organize your research.
Sign up freeThis content may have been generated or modified by AI. CloudSurf Software LLC is not responsible for the accuracy, completeness, or reliability of AI-generated content. Always verify important information from primary sources.
Report