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:
6543 2023-07-17 01:35:20 +02:00 committed by GitHub
parent 0c46ba4d80
commit 1b646a28b4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,7 +27,7 @@ const (
type LogEntry struct { type LogEntry struct {
ID int64 `json:"id" xorm:"pk autoincr 'id'"` 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"` Time int64 `json:"time"`
Line int `json:"line"` Line int `json:"line"`
Data []byte `json:"data" xorm:"LONGBLOB"` Data []byte `json:"data" xorm:"LONGBLOB"`