Skip to content

Commit

Permalink
MORE BUCKETS
Browse files Browse the repository at this point in the history
  • Loading branch information
colin-sentry committed Jul 23, 2024
1 parent cbd9da9 commit 3d5ca26
Showing 1 changed file with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
storage_set_name = StorageSetKey.EVENTS_ANALYTICS_PLATFORM
local_table_name = "eap_spans_local"
dist_table_name = "eap_spans_dist"
num_attr_buckets = 200

columns: List[Column[Modifiers]] = [
Column("organization_id", UInt(64)),
Expand Down Expand Up @@ -59,7 +60,7 @@
f"attr_str_{i}",
Map(String(), String(), modifiers=Modifiers(codecs=["ZSTD(1)"])),
)
for i in range(50)
for i in range(num_attr_buckets)
]
)

Expand All @@ -69,7 +70,7 @@
f"attr_num_{i}",
Map(String(), Float(64), modifiers=Modifiers(codecs=["ZSTD(1)"])),
)
for i in range(50)
for i in range(num_attr_buckets)
]
)
columns.extend(
Expand All @@ -78,7 +79,7 @@
f"attr_bool_{i}",
Map(String(), Bool(), modifiers=Modifiers(codecs=["ZSTD(1)"])),
)
for i in range(50)
for i in range(num_attr_buckets)
]
)

Expand All @@ -104,7 +105,7 @@
granularity=1,
target=OperationTarget.LOCAL,
)
for i in range(50)
for i in range(num_attr_buckets)
]
+ [
operations.AddIndex(
Expand All @@ -116,7 +117,7 @@
granularity=1,
target=OperationTarget.LOCAL,
)
for i in range(50)
for i in range(num_attr_buckets)
]
+ [
operations.AddIndex(
Expand All @@ -128,7 +129,7 @@
granularity=1,
target=OperationTarget.LOCAL,
)
for i in range(50)
for i in range(num_attr_buckets)
]
+ [
operations.AddIndex(
Expand All @@ -140,7 +141,7 @@
granularity=1,
target=OperationTarget.LOCAL,
)
for i in range(50)
for i in range(num_attr_buckets)
]
)

Expand Down

0 comments on commit 3d5ca26

Please sign in to comment.