Added a trace for index creation

This commit is contained in:
emeric
2024-04-16 14:06:49 +02:00
parent 90a2ac5680
commit 7ecaa16b8e
+2
View File
@@ -145,6 +145,8 @@ namespace lms::db
// Indexes
{
LMS_SCOPED_TRACE_OVERVIEW("Database", "IndexCreation");
auto transaction{ createWriteTransaction() };
_session.execute("CREATE INDEX IF NOT EXISTS artist_id_idx ON artist(id)");
_session.execute("CREATE INDEX IF NOT EXISTS artist_name_idx ON artist(name)");