We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Combining Filters and Aggregation:
If possible, combine the COUNT(*) > 100000 filter with the aggregation step to minimize intermediate results.
SELECT CounterID, AVG(length(URL)) AS l, COUNT(*) AS c FROM hits WHERE URL <> '' GROUP BY CounterID HAVING COUNT(*) > 100000 ORDER BY l DESC LIMIT 25;
└─ HEAP SORT (LIMIT 25, ORDER BY l DESC) └─ FILTER (COUNT(*) > 100000) └─ PROJECT (AVG(LENGTH(URL)), COUNT(*), CounterID) └─ AGGREGATE (AVG(LENGTH(URL)), COUNT(*)) GROUP BY (CounterID) [!!!FILTER HERE!!!] └─ READ (hits) [CounterID, URL] (URL != '')
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Combining Filters and Aggregation:
If possible, combine the COUNT(*) > 100000 filter with the aggregation step to minimize intermediate results.
The text was updated successfully, but these errors were encountered: