I'm trying to figure out how to attribute memory use in CockroachDB to a particular query. How do I do that? I've tried using EXPLAIN, but that doesn't seem to show memory usage.
In CockroachDB, how do I figure out how much memory a query is using?
188 Views Asked by Jordan Lewis At
1
You can use
EXPLAIN ANALYZEto show the answer to this question. Here's a transcript from CockroachDB 20.2.2 that shows the method:The link shows the following pictures, which contains the memory usage per operator. Notice that the aggregator (the
group byoperator) shows 70 kb, the quantity that we were looking for: