I have an app that works with a device and I need to store my own made logs that include different IDs, angles, raw data and lots more, 20+ variables combined. Seems simple, but the latency is 13ms, so I'll be having around 20 insert requests per second.
Having tried implementing SQLite database did too much usage for the processor. I've done simple DatabaseAdapter that inserts data via contentValues.
What is the best way to ease the process:
- Make native SQL commands avoiding usage of contentValues and other adapters?
- Collect data in ArrayList \ Array and make insertion every second (don't know yet if array insertion is possible in SQL)?
- Use different way to store data, i.e. open internal storage file stream and just put the logged data there and close the stream when activity is destroyed or paused?
Aucun commentaire:
Enregistrer un commentaire