Skip to content

Commit

Permalink
Table.Get points always in single batch
Browse files Browse the repository at this point in the history
  • Loading branch information
marino39 committed Apr 18, 2024
1 parent f9a080f commit b95f6f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion table.go
Original file line number Diff line number Diff line change
Expand Up @@ -892,7 +892,7 @@ func (t *_table[T]) Get(ctx context.Context, sel Selector[T], optBatch ...Batch)
defer t.db.putKeyArray(valueArray)

var trs []T
err := batched[T](selPoints, t.scanPrefetchSize, func(selPoints []T) error {
err := batched[T](selPoints, len(selPoints), func(selPoints []T) error {
keys := t.keysExternal(selPoints, keyArray)

values, err := t.get(keys, batch, valueArray, false)
Expand Down

0 comments on commit b95f6f4

Please sign in to comment.