mirror of
https://github.com/LBRYFoundation/reflector.go.git
synced 2025-08-23 17:27:25 +00:00
bump up batch size to speed up querying
This commit is contained in:
parent
96427136ef
commit
dfb77d3547
1 changed files with 1 additions and 1 deletions
2
db/db.go
2
db/db.go
|
@ -100,7 +100,7 @@ func (s *SQL) HasBlobs(hashes []string) (map[string]bool, error) {
|
||||||
|
|
||||||
var hash string
|
var hash string
|
||||||
exists := make(map[string]bool)
|
exists := make(map[string]bool)
|
||||||
maxBatchSize := 100
|
maxBatchSize := 10000
|
||||||
doneIndex := 0
|
doneIndex := 0
|
||||||
|
|
||||||
for len(hashes) > doneIndex {
|
for len(hashes) > doneIndex {
|
||||||
|
|
Loading…
Add table
Reference in a new issue