www.spatial.cs.umn.edu
Download
Report
Transcript www.spatial.cs.umn.edu
IndexedDB
Not Only for Programmers
John (Jack) O’Leary
Luyi Chen
CSci 5708 02/10/2015
How to store data offline?
- Cookies, Web Storage (local & session)[4]
- New Option: IndexedDB
- A simple document database in your browser
- Built on: Stores, Indexes, Queries[5]
Existing Model
● "World Wide Web Consortium (W3C)
dropped Web SQL standardization work
(11/18/2010)" [1]
● hampered - tied to SQLite, not to a standard
interface" [1]
● "With multi-process browsers arriving...
browsers get the ability to do more things in
parallel, and LocalStorage can't keep up." [2]
Rationale For Change
● Asynchronous [3], [5]
● Transactional [3], [5]
● Queryable [3], [5]
(Examples - Jack?)
● Simple! [3], [5]
● But...[3], [6]
Thanks!
● Index is not only for programmers!
● Questions?
Reference
1. ‘Firefox beta getting new database standard’. Retrieved from:
http://www.cnet.com/news/firefox-beta-getting-new-database-standard/
02/09/2015
2. ‘Consenesus emerged for key Web app standard’. Retrieved from:
http://www.cnet.com/news/consensus-emerges-for-key-web-app-standard/
02/09/2015
3. ‘Basic Concepts’. Retrived from: https://developer.mozilla.org/enUS/docs/Web/API/IndexedDB_API/Basic_Concepts_Behind_IndexedDB
02/09/2015
4. ‘Web Storage API’. Retrieved from: https://developer.mozilla.org/enUS/docs/Web/API/Web_Storage_API 02/09/2015
5. ‘IndexedDB, a database in your browser.’ Retrieved from:
http://aaronpowell.github.io/talks/indexeddb/#slide-1 02/09/2015
6. ‘Flight mode - taking web apps offline’. Retrieved from:
http://aaronpowell.github.io/talks/flight-mode/ 02/09/2015