Problem Overview: Table1 has 2,000 small Parquet files (1 MB each). Query performance suffers when the table contains numerous small files because the query engine must process each file individually, leading to significant overhead. Solution: To improve performance, file compaction is necessary to reduce the number of small files and create larger, optimized files. Commands and Their Roles: OPTIMIZE Command: - Compacts small Parquet files into larger files to improve query performance. - It supports optional features like V-Order, which organizes data for efficient scanning. VACUUM Command: - Removes old, unreferenced data files and metadata from the Delta table. - Running VACUUM after OPTIMIZE ensures unnecessary files are cleaned up, reducing storage overhead and improving performance.