diff --git a/app/vmselect/netstorage/netstorage.go b/app/vmselect/netstorage/netstorage.go index 037d6b4e1f..cccf659d66 100644 --- a/app/vmselect/netstorage/netstorage.go +++ b/app/vmselect/netstorage/netstorage.go @@ -485,7 +485,7 @@ func (pts *packedTimeseries) unpackTo(dst []*sortBlock, tbfs []*tmpBlocksFile, t upw.addr = addr upw.tr = tr } - if gomaxprocs == 1 || upwsLen == 1 { + if gomaxprocs == 1 || upwsLen <= 100 { // It is faster to unpack all the data in the current goroutine. upw := getUnpackWork() samples := 0