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:
parent
2673645907
commit
e2ab7d834b
@ -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
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user