Index Creation Causes 2000× Slowdown in SQLite Query Performance
Understanding the Query Plan Change Due to Index Creation The core issue revolves around a significant performance degradation observed after creating a partial index on a DATE column in an SQLite database. The query in question, which initially executed in approximately 0.2 seconds, slowed down to around 400 seconds after the index was added. This…