Skip to content

Commit cfd13b3

Browse files
authored
fix: Optimize fetch_metric_buckets for <1k series (#108)
1 parent 7218079 commit cfd13b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/neptune_query/internal/composition/fetch_metric_buckets.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,8 @@ def go_fetch_sys_attrs() -> Generator[list[identifiers.SysId], None, None]:
189189
executor=executor,
190190
)
191191

192-
# if len(run_attribute_definitions) <= MAX_SERIES_PER_REQUEST:
193-
# return fetch_in_chunks(x_range=None, bucket_limit=limit), sys_id_label_mapping
192+
if len(run_attribute_definitions) <= MAX_SERIES_PER_REQUEST:
193+
return fetch_in_chunks(x_range=None, bucket_limit=limit), sys_id_label_mapping
194194

195195
global_x_range = _compute_global_x_range(fetch_in_chunks=fetch_in_chunks)
196196
if global_x_range is None:

0 commit comments

Comments
 (0)