1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-21 16:29:43 +01:00

* Run analyze on shutdown (for debugging only).

This commit is contained in:
Christian Muehlhaeuser 2012-05-23 13:08:23 +02:00
parent 2673645907
commit e2ab7d834b

View File

@ -96,6 +96,18 @@ DatabaseImpl::DatabaseImpl( const QString& dbname, Database* parent )
DatabaseImpl::~DatabaseImpl()
{
delete m_fuzzyIndex;
#ifdef TOMAHAWK_QUERY_ANALYZE
TomahawkSqlQuery q = newquery();
q.exec( "ANALYZE" );
q.exec( "SELECT * FROM sqlite_stat1" );
while ( q.next() )
{
tLog( LOGSQL ) << q.value( 0 ).toString() << q.value( 1 ).toString() << q.value( 2 ).toString();
}
#endif
}