mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 22:26:32 +02:00
* Run analyze on shutdown (for debugging only).
This commit is contained in:
@@ -96,6 +96,18 @@ DatabaseImpl::DatabaseImpl( const QString& dbname, Database* parent )
|
|||||||
DatabaseImpl::~DatabaseImpl()
|
DatabaseImpl::~DatabaseImpl()
|
||||||
{
|
{
|
||||||
delete m_fuzzyIndex;
|
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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user