Surely you had your reasons to code it this way, but why they didn't export those files to a db operating subsequent queries on it?
I knew that question would be asked... So here is your (rather complex) answer.
This data has no business in the DB. It is not well suited since the structure (fields) may grow and contract as per required...
The data is sourced from the vehicles (Android Tablets) in which they are running. Every second of each work shift (typically 14 - 16 hours) is being captured.
For each second - up to 60 vehicle (ECM data), driver, GPS, datetime, what was had for lunch (not really) type parameters are being recorded.
I tried stuffing this in the SQLite tables - but way too much (overkill - size - management - RDC transfer, etc.).
A simple text file works well where I can randomly define (or re-define) its' structure, which IS stored for a parsing reference (one table record per file / hour).
These text files are created every hour - on the fly for 24 hours per day - so if a disaster occurs - ALL is not lost.
These text files are zipped to get the air out and end up quite small - for OTA transfer to the server...
On the server, each file is stored in a folder named and associated from where it came - the vehicle unit number.
The table (1 record per hour) knows what file to fetch when needed...
This data is used on occasion - like when some incident was reported / occurred - and we need to view the "fine" details.
This bloat can be put on a backup drive for storage and future reference.
At this point, the DB for this project is 93 meg in size - running for almost 2 years.
The text files in question however are a total of 56 gigabyte in size....
So, when is some data TOO MUCH data? Apparently - according to my client and others - NEVER! Just get a bigger disk.
So as they say, bigger is better...
Now, back to my dummies lesson I was working on...