Query Performance Discrepancy Between SQLite CLI and C API: Subquery Materialization and Join Ordering
Issue Overview: Query Plan Variance Across SQLite Versions and Compile Options The core issue revolves around a SQL query exhibiting drastically different execution times (100x slower) when executed via a C program using the SQLite C API compared to the SQLite command-line interface (CLI). This discrepancy persists even when the CLI is compiled from source…