Skip to content

Commit a7e4bd8

Browse files
authored
Merge pull request #1854 from dgageot/faster-past-sessions
Make loading past sessions faster
2 parents 4c16dda + b360708 commit a7e4bd8

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

pkg/session/migrations.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,12 @@ func getAllMigrations() []Migration {
326326
Description: "Add split_diff_view column to sessions table for persisting split diff toggle",
327327
UpSQL: `ALTER TABLE sessions ADD COLUMN split_diff_view BOOLEAN`,
328328
},
329+
{
330+
ID: 18,
331+
Name: "018_add_session_items_type_index",
332+
Description: "Add index on session_items(session_id, item_type) to speed up session summary message counts",
333+
UpSQL: `CREATE INDEX IF NOT EXISTS idx_session_items_session_type ON session_items(session_id, item_type)`,
334+
},
329335
}
330336
}
331337

0 commit comments

Comments
 (0)