I am doing offline DB connectivity in my page using HTML5 IndexedDB concepts.. But Initially, I want to fetch large datas to store it in my IndexedDb, so for that purpose, I
In addition to Editor and Kristof answers, I would like to add few more things since I've worked on a similar solution.
IndexedDB
is a document-oriented database while SQL
is relational database which means that the you should convert your data to a object model before storing them locally IndexedDB
and trying to create joins. IndexedDB
should be used if you store different objects in the database or you have additional data for your main object (example list of articles in one table - article text in the second table).Next thing is data synchronization - this can get really complicated if you update the data on both sides (client & server). The main problem that you'll be facing in the data synchronization is the fact that you'll have one main SQL
database and a lot of local client databases.
Here are couple things you should also consider:
SQL
database. IndexedDB
works faster with smaller transactions. Chrome
you can access IndexedDB
from web-workers
and make parallel requests - this can really speed things up.This are just some facts you'll need to consider before you start implementing the solution, hope it helps.