From f0be579fd19a1d24a52a7ce5664117cbc9c0b8a2 Mon Sep 17 00:00:00 2001 From: "alex.sharov" Date: Mon, 2 Jan 2023 10:50:08 +0700 Subject: [PATCH] warmup: 100K prefixes --- core/rawdb/rawdbreset/reset_stages.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/rawdb/rawdbreset/reset_stages.go b/core/rawdb/rawdbreset/reset_stages.go index cb43d7b70..954a53e1d 100644 --- a/core/rawdb/rawdbreset/reset_stages.go +++ b/core/rawdb/rawdbreset/reset_stages.go @@ -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 g.Go(func() error { return db.View(ctx, func(tx kv.Tx) error { 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) if err != nil { return err