mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-03 09:37:38 +00:00
warmup: 100K prefixes
This commit is contained in:
parent
8ffdda14f2
commit
f0be579fd1
@ -259,12 +259,12 @@ func WarmupTable(ctx context.Context, db kv.RoDB, bucket string, lvl log.Lvl) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for i := 0; i < 256; i++ {
|
for i := 0; i < 1_000; i++ {
|
||||||
i := i
|
i := i
|
||||||
g.Go(func() error {
|
g.Go(func() error {
|
||||||
return db.View(ctx, func(tx kv.Tx) error {
|
return db.View(ctx, func(tx kv.Tx) error {
|
||||||
seek := make([]byte, 8)
|
seek := make([]byte, 8)
|
||||||
binary.BigEndian.PutUint64(seek, uint64(i*1_000_000))
|
binary.BigEndian.PutUint64(seek, uint64(i*100_000))
|
||||||
it, err := tx.Prefix(bucket, seek)
|
it, err := tx.Prefix(bucket, seek)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
Loading…
Reference in New Issue
Block a user