Home / Companies / New Relic / Blog / Post Details
Content Deep Dive

Optimize your NRQL with Macros!

Blog post from New Relic

Post Details
Company
Date Published
Author
Alexander Jones
Word Count
592
Company Posts That Month
33
Language
English
Hacker News Points
-
Post removed?
No
Summary

New Relic has introduced NRQL Macros, reusable named shortcuts for NRQL expressions that aim to reduce query complexity, establish a single source of truth, and simplify bulk updates. Available through the Administration section or API, macros are created and edited centrally, then referenced in queries with a dollar sign followed by the macro name. They can encapsulate lengthy query components such as WHERE or WITH clauses, standardize differently named attributes that represent the same data, and apply shared changes across dashboards with many widgets, such as excluding test users. By centralizing recurring logic, the feature is intended to make NRQL queries more readable, maintainable, and efficient to update.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Developer Experience 1 486 263 70 -24%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.