mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-19 18:40:13 -06:00
increase default chunk size
this speeds up going to record 900000 significantly
This commit is contained in:
@@ -9,7 +9,7 @@ SqliteTableModel::SqliteTableModel(QObject* parent, DBBrowserDB* db)
|
||||
, m_rowCount(0)
|
||||
, m_iSortColumn(0)
|
||||
, m_sSortOrder("ASC")
|
||||
, m_chunkSize(1000)
|
||||
, m_chunkSize(50000)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -56,6 +56,14 @@ private:
|
||||
QString m_sSortOrder;
|
||||
QMap<int, QString> m_mWhere;
|
||||
|
||||
/**
|
||||
* @brief m_chunkSize Size of the next chunk fetch more will try to fetch.
|
||||
* This value should be rather high, because our query
|
||||
* uses LIMIT and sqlite3 will still execute the whole query and
|
||||
* just skip the not wanted rows, but the execution will
|
||||
* still take nearly the same time as doing the query at all up
|
||||
* to that row count.
|
||||
*/
|
||||
size_t m_chunkSize;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user