I am currently trying to formulate a better query than what I currently have at the moment. For analysis reasons, I want to see the different combinations of facets a certain record has. Currently I use SELECT COUNT(myRecord)FROM Metric FACET foo, bar. This does the job, but I am wondering if it is possible to aggregate the data more efficiently. I use COUNT to group the values together, but I ultimately do not care about the COUNTed sum. Is there a better way to write this query that does not perform that additional calculation?
Query data for unique combinations of facets without COUNT or SUM?
1.5k Views Asked by ADC2000 At
1
There are 1 best solutions below
Related Questions in NEWRELIC
- failed to setup new relic custom instrumentation in my node js app
- New relic in React
- NRI-FLEX Integration Unable to Return the Correct Headers
- INVALID_PARAMETER: The parameter provided does not correspond to any valid entity Terraform NewRelic
- Inconsistencies in Server Performance Arising from Infrastructure Configuration
- Create New Relic SLI for AWS Lambda
- To view percentage change for time periods in NRQL
- Next JS 12 Giving 404 Error for Invalid Static Route JSON File
- How to create alert for low storage on K8sVolumeSample metric in NewRelic
- Why can't New Relic display some metrics for a Ruby on Rails action?
- ERROR: syntax error at or near "entity" LINE 14: FACET entity.name AS 'instanceId'
- Configuring newrelic for RDS
- Persistent apache coredumps originating from NewRelic PHP packageEdit
- New relic not displaing api name for metrics only showing serviceExceute as endpoint
- Error in NewRelic on publishing to kafka in Python
Related Questions in NRQL
- To view percentage change for time periods in NRQL
- How to create alert for low storage on K8sVolumeSample metric in NewRelic
- Is it possible to get 95% percentile response time data from new relic rest api?
- How can I create baseline alert or anomality detection with Newrelic and prometheus metrics?
- Is `like` more expensive than `=` in New Relic?
- How can I compare one field with another in NRQL?
- Convert timestamp with month name to readable time stamp with jq
- NRQL query to fetch highest error rate & slowest average response time
- group by same key UUID across different event and subtract timestamp
- How to get unique AppVersion on unique Uuid in New Relic using NRQL?
- Is there a NewRelic API to consume service levels (SLIs, SLOs)?
- Get Percentage Difference as a separate column when using COMPARE WITH clause in Newrelic NRQL
- NRQL using the FACET count value as a filter
- Query data for unique combinations of facets without COUNT or SUM?
- Getting "Parsing failed" Error for all NRQL queries while posting via HttpURLConnection in Java program
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I think that uniques might be what you're looking for?
For example, based on your current query you could get unique combinations of
fooandbarwithout the count(s) by using this query: