> On performance: SQLite has a mechanism for canceling queries that take longer than a certain threshold.
Can't it consider the complexity of the query and the actual database (indices, tables size etc) to guess how heavy the request is goign to be in advance?