A Subtle SQLite Mistake

I noticed the SQLite query below had an average duration of ~90ms. select package_name, package_summary from pypi_packages where package_name like ? order by package_name limit 10 package_name is the primary key and has an index on it. The table has 864,900 rows and is 166MB in size. 90ms for a query with a filter on the index, limited to 10 rows, on a table that is only 166 MB in size!? I would…