A
A
Alexander Tikhonov2018-03-29 12:35:57
iOS
Alexander Tikhonov, 2018-03-29 12:35:57

How to competently update a large database on a mobile client?

Good afternoon,
Imagine that, for example, we are creating a mobile client for an online store and we need to be able to view products, filter, search, etc. on the mobile client. offline, that is, for this we need to store the database locally on the client, on iOS it will be CoreData / Realm / SQLite, how to update the data correctly?
So far, this option comes to mind: send the client a list of product IDs that need to be updated/deleted/inserted.

{
update: ["id1", "id2"],
delete: ["id3", "id4"],
insert: ["id5", "id6", "id7"]
}

Further, the client will make requests for these IDs for updating / deleting / inserting. What other options are possible?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Taratin, 2018-03-29
@Taraflex

https://pouchdb.com/faq.html

E
Eugene, 2018-03-29
@klim76

why not save the date/time of the last synchronization on the client and when requesting a directory, send this date to the server, and it will already return what has changed/added/deleted since then.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question