Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions Lite/Services/ArchiveService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,14 @@ private void CompactParquetFiles()
using var con = new DuckDBConnection("DataSource=:memory:");
con.Open();

/* Cap memory to avoid multi-GB spikes decompressing large parquet archives.
DuckDB will spill excess to its temp directory automatically. */
using (var pragma = con.CreateCommand())
{
pragma.CommandText = "SET memory_limit = '2GB'; SET preserve_insertion_order = false;";
pragma.ExecuteNonQuery();
}

var totalMerged = 0;
var totalRemoved = 0;

Expand Down
Loading