From 1b646a28b4ef8e0d304c1eb04ddd9886194da58b Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Mon, 17 Jul 2023 01:35:20 +0200 Subject: [PATCH] Index stepID for logEntries so loading time decrease significantly (#2006) speedup from 2min loading to 0.01sec :D got missed by #1802 --- server/model/log.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/model/log.go b/server/model/log.go index acce9f1e0..1e06c8075 100644 --- a/server/model/log.go +++ b/server/model/log.go @@ -27,7 +27,7 @@ const ( type LogEntry struct { ID int64 `json:"id" xorm:"pk autoincr 'id'"` - StepID int64 `json:"step_id" xorm:"'step_id'"` + StepID int64 `json:"step_id" xorm:"INDEX 'step_id'"` Time int64 `json:"time"` Line int `json:"line"` Data []byte `json:"data" xorm:"LONGBLOB"`