Is it possible to specify the maximum period of time that a SELECT query can execute using SQLITE?
The situation will be useful where you have large tables, and users should be able to enter free search terms. If the search for the terms found is not quickly found, the entire table is scanned, which can take a very long time, since indexes can usually not be used.
So, if SQLITE crashes after a few seconds, it will be useful.
I am using SQLITE through System.Data.Sqlite, and it seemed that SqliteCommand.CommandTimeout would be what I want, but tuning apparently has no effect for any reason. Maybe I missed something.
source share