Repository navigation
Working with Large Files
Aziz Nadirov edited this page Nov 17, 2026
·
3 revisions
ParVu is built for files that don't fit comfortably in a spreadsheet: millions to hundreds of millions of rows, and many gigabytes.
- Nothing is loaded up front. Parquet, CSV and JSON files are read in place by DuckDB. Opening a 4 GB Parquet file takes seconds, and memory use stays in the hundreds of megabytes.
- Only the visible page is fetched, 500 rows by default.
- Steps are lazy. A filter or a formula is applied as you page, not to the whole file in advance.
- Parquet is the fastest format. It stores columns separately, so a chart or a statistic reads only the columns it needs. A CSV file must be read in full for most operations. To work with a big CSV file repeatedly, Save As Parquet once.
- Excel files are the exception: they are read into memory when they open.
Some operations must read a whole column or the whole table:
- unique values
- column statistics
- charts
- colour scales
- search
- random samples
- export
- the Convert dialog's full count
On a big file these run beside the table, not in front of it:
- a progress bar shows how far they are, either in their dialog or in the status bar;
- Stop ends them at once;
- you can keep scrolling and paging while they work;
- starting the same kind of operation again (changing a chart setting, say) replaces the running one instead of queueing behind it.

Show Unique Values reads the column piece by piece. The list fills in as values are found, and you can tick and apply them before the reading ends. A column with very many different values stops after the first 10,000 found, with a note. Search for a value, or use Filter Rows for an exact condition.
-
Settings → General → Query memory limit (1024 MB by default) caps DuckDB's working memory. Bigger sorts, joins and groupings use temporary files on disk above it (in
~/.cache/duckdb), instead of more memory. Lower it on a machine with little RAM. - Statistics on tables over 2 million rows estimate the distinct count (shown with ≈), so they need no more memory than a small table.
- Copy Values as Tuple takes at most 100,000 values.
- Whole-table calculations (statistics, formula totals, Group By without columns, filling with the mean, median or most frequent value) are computed in a way DuckDB can spill to disk.
- ParVu uses fewer threads on a small memory limit (one per 256 MB): each thread reading a wide Parquet file needs its own buffers.
- A memory guard watches ParVu's own memory. If it passes twice the query memory limit plus 1 GB (at most 65% of the computer's memory) and keeps growing, the running queries stop with This operation needed more memory than allowed, instead of slowing down or freezing the whole computer. On Linux, if memory runs out anyway, the system stops ParVu before other programs.
- Table operations (group by, join…) keep at most 5,000,000 result rows in memory; above that ParVu offers to write the result to a file.
- Sorting the whole table: each page needs the sort. Filter first when you can.
- Search reads rows from the top until it finds a match. It's quick when matches are common, and reads more of the file when they're rare.
-
Formulas with
PREVorNEXTread the whole table in order, so they're limited to 2,000,000 rows. - Cell edits on a CSV file: after an edit, the row count is checked again by reading the file.
Settings → Warnings can ask for confirmation before slow operations, such as a chart or Describe All Columns, on tables over a row, cell or file-size limit.
Start
Work with data
- SQL and Expressions
- Transforming Data
- Column Types
- Formulas
- Excel Functions
- Editing and Filling Cells
- Saving and Exporting
Go further