I'm developing an Android app for salesman, so they can use their device to save their order. Specifically, every morning the salesman would go to the office and fetch the data for that day.
Currently, I can get the data by sending a request to php
file, and like common practice we insert those data into sqlite
in the Android so it can work offline. However, with current approach the device needs 6-8 seconds on getting the data and inserting those data to sqlite
. As the data grow bigger I think it would make it slower. What I had found is that the process of inserting data into sqlite
takes quite amount of time.
So, I've been thinking about dumping all data that is needed by the salesman into a sqlite
file, so I could send only that file which I guess is more efficient. Can you please lead me on how to do that? Or is there any other way which is more efficient approach for this issue?
Note:
- Server DB: Mysql
- Server: PHP