Issue
I am reading voltages from a device continuously which I want to log data on to an SQLite database in real-time. Is it possible to add and read the data from the database so that I can plot it? I am using matplotlib in python.
Solution
There's no reason why you couldn't. If the database is locked by a write, the read(s) will block for that time.
You might want to try the SQLite WAL mode for better concurrent performance by running
PRAGMA journal_mode=WAL;
as the first command of your SQLite connection.
Answered By - AKX
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.