File tree Expand file tree Collapse file tree 2 files changed +1
-30
lines changed Expand file tree Collapse file tree 2 files changed +1
-30
lines changed Original file line number Diff line number Diff line change @@ -313,35 +313,6 @@ EXPLAIN ANALYZE HINTS FOR INDEX wins_by_item AS SQL;
313
313
```
314
314
315
315
The results show the SQL that ` EXPLAIN ANALYZE ` would run to get the TopK hints
316
- for the ` wins_by_items ` index:
317
-
318
- ``` none
319
- SELECT
320
- repeat(' ', nesting * 2) || operator AS operator,
321
- megsa.levels AS levels,
322
- megsa.to_cut AS to_cut,
323
- megsa.hint AS hint,
324
- pg_size_pretty(savings) AS savings
325
- FROM
326
- mz_introspection.mz_lir_mapping AS mlm
327
- JOIN
328
- mz_introspection.mz_dataflow_global_ids AS mdgi
329
- ON (mlm.global_id = mdgi.global_id)
330
- LEFT JOIN
331
- mz_introspection.mz_expected_group_size_advice AS megsa
332
- ON
333
- (
334
- megsa.dataflow_id = mdgi.id
335
- AND
336
- mlm.operator_id_start <= megsa.region_id
337
- AND
338
- megsa.region_id < mlm.operator_id_end
339
- )
340
- JOIN
341
- mz_introspection.mz_mappable_objects AS mo
342
- ON (mlm.global_id = mo.global_id)
343
- WHERE mo.name = 'materialize.public.wins_by_item'
344
- ORDER BY mlm.lir_id DESC;
345
- ```
316
+ for the ` wins_by_items ` index.
346
317
347
318
[ TopK hints ] : /transform-data/idiomatic-materialize-sql/top-k/#query-hints-1
You can’t perform that action at this time.
0 commit comments