I am working on project. In that project there are three timers is running through out the application after login. In each timer, we are calling approx 10-15 APIs for either upload data on server or fetch data from server. We are facing following issues-
- We are unable to do data processing in background, due to this when we fire SELECT query to search records then SQLITE gives error "Database is locked".
- So we are doing all data processing thing on Main thread, It actually creating UI freeze issue, whenever we call APIs.
Please suggest how we can do this process, so that User can search records from SQLITE DB at same time device can call APIs and can insert/update/upload records.
Note: There 2.2 Million Records in table in SQLITE Database.