Syncing IndexedDB with Sql Server

前端 未结 4 1364
不思量自难忘°
不思量自难忘° 2020-12-29 15:23

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

4条回答
  •  粉色の甜心
    2020-12-29 16:11

    From what I understand in your question, you are just using indexeddb like a cache layer in case the db goes done. What I would do is the following.

    In case you are working online a save of your data should exist out af 2 actions. Saving to your service (SQL server) and save to your indexeddb.

    In case when you are offline I would do 2 operation. On is still updating your indexeddb, but I would add an extra object store where you save all of your operation that have to be preformed on your service. Once back online, you can processes them one by one.

提交回复
热议问题