Skip to content

Commit

Permalink
Fix: slow opg loading (#967)
Browse files Browse the repository at this point in the history
  • Loading branch information
aopoltorzhicky authored Feb 16, 2023
1 parent 8074ab8 commit 6ec915d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/postgres/operation/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ func (storage *Storage) OPG(address string, size, lastID int64) ([]operation.OPG
},
).
Order("id desc").
Limit(1000)
Limit(325)

if lastID > 0 {
subQuery.Where("id < ?", lastID)
Expand Down

0 comments on commit 6ec915d

Please sign in to comment.