Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/current/v26.1/explain-analyze.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ Property | Description
`maximum memory usage` | The maximum amount of memory used by this statement anytime during its execution.
`network usage` | The amount of data transferred over the network while the statement was executed. If the value is 0 B, the statement was executed on a single node and didn't use the network.
`regions` | The [regions]({% link {{ page.version.version }}/show-regions.md %}) where the affected nodes were located.
`sql cpu time` | The total amount of time spent in the [SQL layer]({% link {{ page.version.version }}/architecture/sql-layer.md %}). It does not include time spent in the [storage layer]({% link {{ page.version.version }}/architecture/storage-layer.md %}).
`kv cpu time` | The total amount of time spent in the [KV layer]({% link {{ page.version.version }}/architecture/overview.md %}#layers) on the critical path of serving the query. Excludes time spent on asynchronous replication and in the [storage layer]({% link {{ page.version.version }}/architecture/storage-layer.md %}).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This links to a section about different layers, but the "KV layer" is not one of the layers mentioned. I'm guessing that "KV layer" is more of an overarching term rather than a specific layer, but I may be misunderstanding something. Approving the PR but this might need a bit of clarification unless there's just some common knowledge that I don't know here

`sql cpu time` | The total amount of time spent in the [SQL layer]({% link {{ page.version.version }}/architecture/sql-layer.md %}).
`max sql temp disk usage` | ([`DISTSQL`](#distsql-option) option only) How much disk spilling occurs when executing a query. This property is displayed only when the disk usage is greater than zero.
`estimated RUs consumed` | The estimated number of [Request Units (RUs)]({% link cockroachcloud/plan-your-cluster-basic.md %}#request-units) consumed by the statement. This property is visible only on CockroachDB {{ site.data.products.basic }} clusters.
`isolation level` | The [isolation level]({% link {{ page.version.version }}/transactions.md %}#isolation-levels) at which this statement executed.
Expand Down Expand Up @@ -226,6 +227,7 @@ EXPLAIN ANALYZE SELECT city, AVG(revenue) FROM rides GROUP BY city;
maximum memory usage: 240 KiB
network usage: 0 B (0 messages)
regions: us-east1
kv cpu time: 1ms
sql cpu time: 443µs
estimated RUs consumed: 0
isolation level: serializable
Expand Down Expand Up @@ -354,6 +356,7 @@ EXPLAIN ANALYZE (VERBOSE) SELECT city, AVG(revenue) FROM rides GROUP BY city;
maximum memory usage: 240 KiB
network usage: 0 B (0 messages)
regions: us-east1
kv cpu time: 944µs
sql cpu time: 275µs
estimated RUs consumed: 0
isolation level: serializable
Expand Down Expand Up @@ -418,6 +421,7 @@ EXPLAIN ANALYZE (DISTSQL) SELECT city, AVG(revenue) FROM rides GROUP BY city;
maximum memory usage: 240 KiB
network usage: 0 B (0 messages)
regions: us-east1
kv cpu time: 1ms
sql cpu time: 300µs
estimated RUs consumed: 0
isolation level: serializable
Expand Down Expand Up @@ -498,6 +502,7 @@ EXPLAIN ANALYZE (REDACT) SELECT * FROM rides WHERE revenue > 90 ORDER BY revenue
maximum memory usage: 290 KiB
network usage: 0 B (0 messages)
regions: us-east1
kv cpu time: 2ms
sql cpu time: 2ms
estimated RUs consumed: 0
isolation level: serializable
Expand Down
Loading