indexed db - the store in the browser

5
IndexedDB The Store in your Browser

Upload: parashuram-n

Post on 14-Jan-2015

1.081 views

Category:

Documents


9 download

DESCRIPTION

A quick introduction about IndexedDB

TRANSCRIPT

Page 1: Indexed db - the store in the browser

IndexedDBThe Store in your Browser

Page 2: Indexed db - the store in the browser

Rich Internet Applications (Offline) Should you be online to use Rich Internet Applications?

Classes of Applications Intermittently connected applications – Calendar and mail clients

Disconnected applications – Todo Lists or Sticky Notes

Caching Data – User profile and shopping catalog cached on the browser

Complements AppCache standards

Possibilities today Cookies

Local/Session Storage

WebSQLDatabase / Gears

Page 3: Indexed db - the store in the browser

Hello {IndexedDB} Persistent Storage in the Browser

Part of the HTML5 set of specifications Standard still in draft

Object Store: non-relational Put and Get Objects

Iterate over objects

Index on properties

Two Flavors Synchronous – on WebWorkers

Asynchronous – on Global Window object

Page 4: Indexed db - the store in the browser

Concepts + Code Installation and Pre Requisites

Requests

Database – the place where it is all stored

Object Store Stores {Key: Javascript Object} (Structured Cloning Algorithm)

Like Tables in the relational world

Transactions To ensure consistency

Read, Read_Write and Version_Change

Cursor Enumerate over objects using “continue”

Indexes Start cursors on other (non primary key) properties of the object