mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 22:26:32 +02:00
* No need to set the auto_vacuum pragma per connection.
This commit is contained in:
@@ -67,6 +67,7 @@ DatabaseImpl::DatabaseImpl( const QString& dbname, Database* parent )
|
|||||||
|
|
||||||
tLog() << "Database ID:" << m_dbid;
|
tLog() << "Database ID:" << m_dbid;
|
||||||
init();
|
init();
|
||||||
|
query.exec( "PRAGMA auto_vacuum = FULL" );
|
||||||
|
|
||||||
tDebug( LOGVERBOSE ) << "Tweaked db pragmas:" << t.elapsed();
|
tDebug( LOGVERBOSE ) << "Tweaked db pragmas:" << t.elapsed();
|
||||||
|
|
||||||
@@ -101,7 +102,6 @@ DatabaseImpl::init()
|
|||||||
TomahawkSqlQuery query = newquery();
|
TomahawkSqlQuery query = newquery();
|
||||||
|
|
||||||
// make sqlite behave how we want:
|
// make sqlite behave how we want:
|
||||||
query.exec( "PRAGMA auto_vacuum = FULL" );
|
|
||||||
query.exec( "PRAGMA synchronous = ON" );
|
query.exec( "PRAGMA synchronous = ON" );
|
||||||
query.exec( "PRAGMA foreign_keys = ON" );
|
query.exec( "PRAGMA foreign_keys = ON" );
|
||||||
//query.exec( "PRAGMA temp_store = MEMORY" );
|
//query.exec( "PRAGMA temp_store = MEMORY" );
|
||||||
|
Reference in New Issue
Block a user