I am new in database development, sorry if this is inconvenient to ask. I am developing an Android application, the database of which has a table with thousands of entries. This table is generated from a backend Oracle database and has to be updated with the changes in the backend database every time an update button is clicked on the Android app.
The procedure that I came up with is here:
A text file is generated from the Oracle database by running an SQL script every three hours.
Each time it is needed, the Android application downloads this text file, dumps the old table, and parses it into the new table.
My problem is that since the text file is very big with thousands of lines (around 5MB), downloading and parsing takes a very long time, but it needs to be (almost) instantaneous.
My questions are:
Is there a better way to update the SQLite database from the Oracle backend efficiently?
Since parsing takes too long, is there a way to setup SQLite to work with the text file, skipping parsing?