Y
Y
ywitodenasuby2018-09-04 21:06:22
Android
ywitodenasuby, 2018-09-04 21:06:22

I want to do a live search by locality, where to store the data?

Settlements 15000. Store them in sqlite or take data from the server, how is this done correctly?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
alterEgoChaos, 2018-09-06
@alterEgoChaos

look in the direction of Dadata, maybe you don’t need it, but you never know)

A
Artem, 2018-09-04
@devspec

If us. items will change infrequently - store in sqlite, there are advanced full-text search capabilities, and ordinary queries will work out a fraction of a second on such a volume. When changing the data set, they can be re-uploaded from the server to the local sqlite.
If frequent or online data changes are implied, then it is better to pull them online.

F
Fuck Society, 2018-09-04
@hackerq

There is an interesting JS base solution, request processing is instant and there is a search - https://github.com/louischatriot/nedb

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question