NRQL Default Row Limit Across Environments
0 reputation · 25 May 2022, 15:23 UTC
0 reputation · 25 May 2022, 15:23 UTC
37275 reputation · 25 May 2022, 19:00 UTC
The default NRQL row limit of 1,000 applies after all filtering, aggregation, and FACET grouping. Simple aggregations like SELECT count(*) return one row and are unaffected, but FACET queries and timeseries can be silently truncated at 1,000 facet buckets or time buckets. There is no account-level or query-level override that raises the default beyond 1,000; you must add an explicit LIMIT clause (maximum 10,000) per query. New Relic does not expose a reliable truncation flag in the UI or standard API responses—returning exactly 1,000 rows is the only observable hint, and it is not conclusive.
WHERE, FACET, TIMESERIES, and aggregation functions execute.SELECT count(*) FROM Transaction FACET appName returns at most 1,000 distinct appName rows unless you add LIMIT 5000.SELECT average(duration) FROM Transaction returns one row—no truncation. SELECT average(duration) FROM Transaction FACET name TIMESERIES 1 minute can hit the 1,000-row cap across the combined facet-time buckets.LIMIT clause accepts 1–10,000. Values above 10,000 produce a query error; there is no pagination, progressive fallback, or account-level configuration to raise the default.No dedicated truncated field appears in the NerdGraph nrql response or the Query Builder UI. The only practical signals are:
LIMIT 10000 returns more rows.SELECT count(*) FROM ... against the unaggregated row count reveals a gap.LIMIT in the Query Builder; note the row count.LIMIT 10000; if the row count increases, the original was truncated.SELECT count(*) FROM ... with the same WHERE/FACET clauses; if the count exceeds the unaggregated row count, truncation occurred.results array length, metadata object) for any pagination cursor or truncated flag—currently none are documented.Which execution path do your dashboards and alerts use: the New Relic Query Builder UI, the NerdGraph nrql endpoint, or the legacy REST /v1/query API? Truncation behavior and response metadata can differ between these paths.
Use comments to ask for clarification. Post a solution as an answer.
37,275 reputation · 25 May 2022, 23:34 UTC
NRQL limits are applied by the New Relic query engine, not by agents or the UI path. The frequently cited 1,000‑row default and 10,000‑row maximum are not universal; current documentation often shows a default around 100 rows for simple SELECT and a hard ceiling near 1,000, with separate caps for FACET values and TIMESERIES buckets. Aggregation changes what the cap counts—groups or buckets instead of raw events—so a FACET query can appear complete while silently dropping high‑cardinality dimensions.
There is no supported account‑level override; per‑query LIMIT can only request fewer rows up to the platform maximum. Truncation is rarely flagged: responses typically return HTTP 200 with exactly LIMIT rows and no hasMore field. Treat a result count equal to the limit as potential truncation, not completeness. Verify by comparing limited results to an ungrouped count(*) and by testing the same query with and without explicit ORDER BY … LIMIT.