Skip to content
Discussion options

You must be logged in to vote

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 …

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@gojomoso1
Comment options

@mwc360
Comment options

Answer selected by gojomoso1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants