Optimizing SQLite Query Performance on Large Tables with Joins and Filters
Issue Overview: Slow Read Performance on a 2.5GB SQLite Database with Joins and Filters A user reported significant performance degradation when querying a 2.5GB SQLite database containing three tables: labels (15k rows, metadata for sensor labels) plc_values (125M rows, time-series sensor readings linked to labels and reads) reads (120k rows, timestamps for sensor readings) The…