mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-23 02:11:01 +00:00
Index stepID for logEntries so loading time decrease significantly (#2006)
speedup from 2min loading to 0.01sec :D got missed by #1802
This commit is contained in:
parent
0c46ba4d80
commit
1b646a28b4
1 changed files with 1 additions and 1 deletions
|
@ -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"`
|
||||
|
|
Loading…
Reference in a new issue