diff --git a/src/sqlitetablemodel.cpp b/src/sqlitetablemodel.cpp index 390b675c..aca5c64b 100644 --- a/src/sqlitetablemodel.cpp +++ b/src/sqlitetablemodel.cpp @@ -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) { } diff --git a/src/sqlitetablemodel.h b/src/sqlitetablemodel.h index 037290c5..3ccefc99 100644 --- a/src/sqlitetablemodel.h +++ b/src/sqlitetablemodel.h @@ -56,6 +56,14 @@ private: QString m_sSortOrder; QMap 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; };