Skip to content

Commit

Permalink
Index stepID for logEntries so loading time decrease significantly (#…
Browse files Browse the repository at this point in the history
…2006)

speedup from 2min loading to 0.01sec :D

got missed by  #1802
  • Loading branch information
6543 authored Jul 16, 2023
1 parent 0c46ba4 commit 1b646a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/model/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down

0 comments on commit 1b646a2

Please sign in to comment.