Skip to content

Commit

Permalink
perf: use any instead of max to select consistent fields
Browse files Browse the repository at this point in the history
  • Loading branch information
wrn14897 committed Dec 4, 2023
1 parent 2b57db9 commit e67f964
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/api/src/clickhouse/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -633,9 +633,9 @@ const getMetricsTagsUncached = async (teamId: string) => {
const query = SqlString.format(
`
SELECT
MAX(is_delta) as is_delta,
MAX(is_monotonic) as is_monotonic,
MAX(unit) as unit,
any(is_delta) as is_delta,
any(is_monotonic) as is_monotonic,
any(unit) as unit,
data_type,
format('{} - {}', name, data_type) as name,
groupUniqArray(_string_attributes) AS tags
Expand Down

0 comments on commit e67f964

Please sign in to comment.