Átomo
60Po
Delta no Databricks · Databricks

PREDICTIVE OPTIMIZATION

Abrir na tabela

Definição

O Databricks executa OPTIMIZE, VACUUM e ANALYZE automaticamente nas tabelas geridas, quando valer a pena.

Só para tabelas geridas pelo Unity Catalog.

Exemplos

1. No catálogo
ALTER CATALOG prod ENABLE PREDICTIVE OPTIMIZATION;
2. Num schema
ALTER SCHEMA prod.silver ENABLE PREDICTIVE OPTIMIZATION;
3. Ver o que foi executado
SELECT table_name, operation_type, start_time
FROM system.storage.predictive_optimization_operations_history
ORDER BY start_time DESC;

No mesmo grupo