Skip to main content

Configuring Table Compaction

Each table in OLake Fusion can have its own compaction schedule and advanced settings.

1. Table Level Configuration​

Step 1. Click the Configure Button​

Click the Configure button next to the table you want to compact. This opens a modal where you can schedule Lite, Medium, and Full compactions.

Configure button

Step 2. Set the Compaction Schedule​

  • Select a schedule from the predefined dropdown options or choose Custom to specify your own cron expression.
  • Compaction will run automatically according to the schedule set for that table.

Compaction Schedule

Step 3. Advanced Config: Target File Size​

  • Expand the Advanced Config panel in the modal.
  • Specify the Target File Size for the table (default 512 MB if you leave it unchanged).

For how target file size affects Lite, Medium, and Full compaction, see Types of Compaction Supported in OLake Fusion.

Tip: Choose a target size based on your query patterns and table size. Larger files can improve scan efficiency based on the query but may increase the cost of rewriting files.

Target File Size

Step 4. Save the Configuration​

  • Click Save.

Save Configuration

  • A dialog box confirms that the configuration was successful.

Save successful

  • Once saved, the Status toggle for that table turns on automatically and compaction runs on the schedule you configured. Confirm this in the Status column as the toggle should appear active.

status active

2. Bulk Configuration​

Bulk configuration lets you apply the same compaction schedule and settings to multiple tables in one go, instead of configuring each table individually.

To get started, select the tables you want to configure from the Tables page using their checkboxes, then click Bulk Configure. The same configuration modal opens β€” set the schedule, target file size, and save, exactly as described in Steps 2–4 of Single Table Configuration.

bulk select tables

Default Configuration

If any configuration is left unset, the following defaults apply: 24 hours as the frequency for each compaction type and 512 MB as the target file size.



πŸ’‘ Join the OLake Community!

Got questions, ideas, or just want to connect with other data engineers?
πŸ‘‰ Join our Slack Community to get real-time support, share feedback, and shape the future of OLake together. πŸš€

Your success with OLake is our priority. Don’t hesitate to contact us if you need any help or further clarification!