Skip to content

Commit

Permalink
Add table bloom filter
Browse files Browse the repository at this point in the history
  • Loading branch information
carsonip committed Jan 14, 2025
1 parent 08c9205 commit 1c89735
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion x-pack/apm-server/sampling/eventstorage/pebble.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package eventstorage

import (
"github.com/cockroachdb/pebble"
"github.com/cockroachdb/pebble/bloom"

"github.com/elastic/apm-server/internal/logs"
"github.com/elastic/elastic-agent-libs/logp"
Expand Down Expand Up @@ -47,7 +48,9 @@ func OpenPebble(storageDir string) (*pebble.DB, error) {
MemTableSize: pebbleMemTableSize,
Levels: []pebble.LevelOptions{
{
Compression: pebble.NoCompression,
Compression: pebble.NoCompression,
FilterPolicy: bloom.FilterPolicy(10),
FilterType: pebble.TableFilter,
},
},
})
Expand Down

0 comments on commit 1c89735

Please sign in to comment.