| 1 |
Run EXPLAIN (ANALYZE, DIST). |
Shows distributed execution details. |
| 2 |
Look for YB Batched Nested Loop Join. |
Confirms the query is using a batched lookup strategy. |
| 3 |
Check Storage Table Read Requests. |
Reveals whether batching is efficient or fragmented. |
| 4 |
Test a moderate session-level work_mem increase. |
Validates whether memory is limiting batching. |
| 5 |
Compare execution time and storage reads. |
Confirms whether the change actually helped. |
| 6 |
Calculate safe cluster-wide memory impact. |
Avoids creating memory pressure under concurrency. |
| 7 |
Use sampled logging or auto_explain. |
Helps catch other slow query patterns safely. |