Javier Carbajo
06/29/2023, 7:58 AMevent_name
and date
. So the more time I’m ingesting data, the more files and size the table has.
Every night I’m running a compaction + vacuum process in order to maintain the table in the best possible way. Compaction (optimize) is perfect because I’m able to filter the partitions I want to optimize but the vacuum command doesn’t allow me to filter the partitions I want to vacuum and does the vacuum of the whole table each time. As I only append data to the table, if we extend this behavior, the vacuum will spend too much time running. For the moment it’s not a problem but I want to anticipate it.
Any idea on how can I vacuum/clean the table/old files filtering the partitions I want to vacuum? Or any workaround to avoid too large vacuums?
Thanks a lot for your help! Have a nice Thursday! 🙂Gerhard Brueckl
06/29/2023, 8:30 AMVACUUM
would not do anything and you can just omit it
to remove data from older dates you would need to run a regular DELETE
command instead of VACUUM
Javier Carbajo
06/29/2023, 10:34 AMvacuum would not do anything and you can just omit it
.
If I’m appending data and optimizing it to merge small files into larger ones.. Vacuum will delete the small (and old) files, no? Or am I missing something?Gerhard Brueckl
06/29/2023, 10:39 AMJavier Carbajo
06/29/2023, 10:43 AMGerhard Brueckl
06/29/2023, 11:05 AMDominique Brezinski
06/29/2023, 3:44 PMSherlock Beard
06/29/2023, 4:19 PMDominique Brezinski
06/29/2023, 4:32 PMJavier Carbajo
06/30/2023, 9:10 AMDominique Brezinski
06/30/2023, 11:33 AMMichael Nacey
07/05/2023, 4:56 PM