|
Does lakehouse.run_table_maintenance support Fast Optimize? I think the answer is yes, but I don't know for sure based on the doc and api docs.
|
Answered by
mwc360
Apr 22, 2026
Replies: 1 comment 2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this method calls the table maintenance API which submits a spark job and waits for completion. Fast optimize is intentionally not enabled by the table maintenance API. The reason is that fast optimize skips compacting small files when it's not estimated to produce a large enough file. For many workloads it's more efficient to minimize write amplification and wait till either there's too many small files (we default it to 50) or wait till the sum of small files is estimated to produce a large enough small file (>64MB if Adaptive Target File Size is enabled). With the table maintenance API, since it is starting a dedicated session to do compaction, it would be a waste to short circuit the …