mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-02-09 21:28:30 -06:00
Use a specialised count query for browsing tables/views
For queries built from a table and filters, use a specialised count query that only takes into account the where part of the statement. This will speed-up the Browse Data tab for big tables. See issue #1666
This commit is contained in:
@@ -34,7 +34,7 @@ public:
|
||||
Cache & cache_data
|
||||
);
|
||||
|
||||
void setQuery (QString);
|
||||
void setQuery (QString new_query, QString newCountQuery = QString());
|
||||
|
||||
void triggerRowCountDetermination (int token);
|
||||
|
||||
@@ -77,6 +77,7 @@ private:
|
||||
mutable std::condition_variable cv;
|
||||
|
||||
QString query;
|
||||
QString countQuery;
|
||||
|
||||
mutable std::future<void> row_counter;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user