Varun Mukundhan
03/24/2022, 1:24 PMtop X using
PQL and order by <aggregation> desc LIMIT X
using SQL. Which one do you reccomend?
2. What are the differences between metrics and dimensions? I could see aggregation queries are allowed on non-string dimensions as wellRichard Startin
03/24/2022, 1:54 PMselect type,name,sum(value) from table group by type, name
type and name would be dimensions and value would be a metric. They are stored differently too, metrics don't have dictionaries, which makes them efficient to do things like sums over, and dimensions generally do have dictionaries, which generally compresses the data and makes group bys easier.Varun Mukundhan
03/24/2022, 2:01 PMorder by <aggregation> desc LIMIT X
is as efficient as using TOP X
from PQL?Richard Startin
03/24/2022, 2:05 PM