I am using SQLite in my mobile application to collect data from a sensor using Bluetooth Low Energy. Sensor is sending values every second. The approach I used is like this: When new data is received, I read it and insert it into a table in the database. The problem is: I noticed that the application crashes when it reaches 1500 insertion. My question is:
In term of performance, is it better to insert one value per second (the approach I am using today) or to collect 60 values in a array variable then insert them in one transaction ?
Is there any other way to optimize the performance of SQLite ? I need to keep the application running the whole day. That's 86400 values to be stored