Skip to content

Commit

Permalink
chore: add indices for attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
ankitnayan committed Aug 15, 2024
1 parent 26a2061 commit fa41827
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
ALTER TABLE signoz_traces.signoz_index_v2 ON CLUSTER {{.SIGNOZ_CLUSTER}}
DROP INDEX IF EXISTS idx_stringTagMapKeys,
DROP INDEX IF EXISTS idx_stringTagMapValues,

DROP INDEX IF EXISTS idx_numberTagMapKeys,
DROP INDEX IF EXISTS idx_numberTagMapValues,

DROP INDEX IF EXISTS idx_boolTagMapKeys;
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
ALTER TABLE signoz_traces.signoz_index_v2 ON CLUSTER {{.SIGNOZ_CLUSTER}}
ADD INDEX IF NOT EXISTS idx_stringTagMapKeys mapKeys(stringTagMap) TYPE tokenbf_v1(1024, 2, 0) GRANULARITY 1,
ADD INDEX IF NOT EXISTS idx_stringTagMapValues mapValues(stringTagMap) TYPE ngrambf_v1(4, 5000, 2, 0) GRANULARITY 1,

ADD INDEX IF NOT EXISTS idx_numberTagMapValues mapKeys(numberTagMap) TYPE tokenbf_v1(1024, 2, 0) GRANULARITY 1,
ADD INDEX IF NOT EXISTS idx_numberTagMapValues mapValues(numberTagMap) TYPE bloom_filter(0.01) GRANULARITY 1,

ADD INDEX IF NOT EXISTS idx_boolTagMapKeys mapKeys(boolTagMap) TYPE tokenbf_v1(1024, 2, 0) GRANULARITY 1;

0 comments on commit fa41827

Please sign in to comment.