Significant performance / data-read regression in v2.00 preview vs v1.5.5 when querying remote Parquet
What happens?
Running the same EXPLAIN ANALYZE query against a remote Parquet file is noticeably slower and reads far more data in the v2.00 preview build compared to v1.5.5 (Variegata). Both versions have enable_external_file_cache at its default value of TRUE, yet the regression is much worse in v2.00 preview under this default.
Explicitly disabling the cache in v2.00 preview reduces the gap but does not fully close it.
To Reproduce
Query used
EXPLAIN ANALYZE
FROM 'https://static.data.gouv.fr/resources/opendamir/20260913-162419/opendamir-2024.parquet'
SELECT SOI_MOI, SUM(PRS_ACT_QTE)::int AS NB_ACTES
GROUP BY ALL
ORDER BY ALL ;Results observed
| Version | enable_external_file_cache |
Data Read | HTTP GETs | Total Time |
|---|---|---|---|---|
| v1.5.5 (Variegata) | default TRUE or FALSE |
17.6 MiB | 308 | 0.93 s |
| v2.00 preview | TRUE (default) |
123.4 MiB | 62 | 2.93 s |
| v2.00 preview | FALSE (explicit SET) |
42.8 MiB | 273 | 1.80 s |
- With the default caching behavior in v2.00 preview, ~7x more data is transferred than in v1.5.5, and the query is ~3x slower.
- Explicitly disabling the new cache (
SET enable_external_file_cache = FALSE;) reduces the damage but still results in ~2.4x more data read and ~2x slower execution than v1.5.5.
Expected behavior
Data read and total query time in v2.00 preview should be at or below v1.5.5 levels for this identical query against a remote Parquet file, not several times higher. I was actually expecting a better query time, due to new async behaviour.
OS:
Win11
DuckDB Version:
v2.0.0-alpha4153
DuckDB Client:
cli
Hardware:
Ram 64 Gb
Full Name:
eric mauviere
Affiliation:
icem7
Did you include all relevant configuration (e.g., CPU architecture, Linux distribution) to reproduce the issue?
- Yes, I have
Did you include all code required to reproduce the issue?
- Yes, I have
Did you include all relevant data sets for reproducing the issue?
No - Other reason (please specify in the issue body)
Source: duckdb/duckdb