DuckDB 2.0: Start With the Files, Then Decide What Infrastructure You Need
DuckDB 2.0 LTS brings asynchronous I/O. A useful evaluation starts with existing files, a repeatable query and measured operational requirements.
A recurring report can become an infrastructure proposal before anyone has established what the calculation needs. DuckDB offers a useful way to reverse that sequence: begin with the files already available, express the question in SQL and measure what it takes to obtain a trustworthy answer.
DuckDB 2.0.0 LTS was released on October 21, 2026, with support promised through at least October 2027. The established open-source analytical database adds asynchronous I/O and other features. Direct analysis of Parquet files is an existing capability that remains a practical entry point for evaluation.
Make the input visible
DuckDB’s Parquet documentation describes querying files without importing them into database tables. File patterns let a query cover multiple exports. With the command-line client installed, and compatible Parquet files directly inside an exports directory relative to the working directory, this query counts rows by source:
SELECT filename, count(*) AS row_count
FROM read_parquet('exports/*.parquet')
GROUP BY filename
ORDER BY filename;
The ordinary single quotes and the wildcard are significant. The pattern selects matching files in that directory; it does not express a recursive search. The virtual filename column identifies where each returned row originated and has been available by default since DuckDB 1.3.0. These features should not be presented as inventions of version 2.0.
The example is an inventory query. It can help identify an unexpectedly large or small export, but it does not establish that records are complete, unique or correct. A file with no rows contributes no group. A useful reconciliation needs additional checks chosen for the report’s meaning.
Preserve the input set before comparing approaches. A directory pattern can match a different collection after the next export arrives. Our suggested pilot records the file list and retains the selected inputs, so another engineer can distinguish a changed calculation from changed data.
What asynchronous I/O changes
The release announcement says version 2.0 adds asynchronous I/O for Parquet, CSV and native database reads. Reads can be scheduled independently of query processing, keeping multiple requests in flight. This is particularly relevant when data sits on remote storage and workers would otherwise spend substantial time waiting.
The project’s design explanation describes separate worker pools and read-ahead: fetching upcoming data can overlap with decoding and processing available data. Prefetching also occupies memory, so the design includes memory governance. Throughput and resource use belong in the same evaluation.
That architecture does not determine the improvement for a particular report. File layout, compression, query structure, available memory and storage conditions still shape execution. A result from a large remote scan cannot establish the likely gain for a small local investigation. We have not benchmarked this release for this article.
Test one report end to end
Our assessment is that DuckDB is worth testing where the operational question is smaller than the infrastructure being proposed. Consider a hypothetical investigation joining application exports with service metadata to explain an operational discrepancy. A local SQL workflow may offer enough structure to inspect and repeat that calculation.
Select one report and define agreement with the current method before timing anything. Specify the expected records, grouping rules and treatment of missing values. Check totals and a few individual cases. If two methods disagree, explain the difference before interpreting a faster runtime as progress.
Keep the SQL, input manifest, engine version and execution instructions together. Ask a second engineer to run the calculation from those materials. Record any explanation they needed that was absent from the instructions. That handover tests whether the analysis has become an inspectable workflow rather than a calculation only its author understands.
Measure elapsed time, peak memory and temporary storage, alongside the effort needed to maintain and explain the report. Record machine and storage conditions, and distinguish an initial run from repeated runs that may benefit from caching. Set an acceptable resource budget before expanding the pilot.
Keep deployment and migration explicit
A successful file query establishes evidence about that workflow. A shared production service introduces further requirements: concurrent users, permission boundaries, recovery, monitoring and ownership. Version 2.0 also develops DuckDB’s server capabilities, but choosing a service deployment still requires evaluating those requirements in its intended environment.
Existing users should treat the migration guide as part of adoption. Among its breaking changes, new database files use a format that versions before 2.0 cannot read. Existing older-format files retain their storage version when written by 2.0. That distinction matters when planning rollback or operating processes on different versions.
The guide recommends a shadow system for testing existing workloads. Exercise representative queries, extensions and the recovery path before replacing a working installation. Support availability provides a planning window; it does not remove the need to validate a specific deployment.
The prospect is a shorter route from raw exports to an answer that another engineer can inspect. Expansion can then follow measured requirements, with a clear account of what the pilot established and what remains to be tested.
Which recurring analysis could your team simplify by querying its existing files directly?