I planned to use SQLite as local database. I created a complex Select statement with "group by" and "order by" in SQLite Manager (Firefox AddIn). The query run in about 600 ms in SQLite Manager. In my C# application i've created a SQLiteCommand with the same query and the cmd.ExecuteReader() method takes about 60 seconds to finish. I'm using the System.Data.SQLite.dll. Neither the "ANALYZE" nor the "VACUUM" command improved the execution time.

Can anyone tell my how to get the same execution time as in SQLite Manager?

Matti

有帮助吗?

解决方案

I simplified my query by just using the select and did the grouping in code via linq. Thats not the best solution but it worked for me

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top