Skip to content

Resolve over a DuckDB-file catalog attaches the lake and scans the whole corpus on every call (#1429 follow-up) #1497

Done

Description

@athvin

Part of #1429. #1429 stays open until er-dev measures p95 under 300 ms.

er-dev on e1b7ef0d: p3live/default's ER_LAKE_CATALOG is a DuckDB file on EFS (/srv/er/data/p3live/catalog.ducklake), so the cached Postgres-catalog session never applies. Every one of 61 calls logged persistent=false.

Per call, from the resolve timings events:

  • about 700 ms outside the timed phases: the lake attach;
  • prefilter about 390 ms: a scan of the 259 MB, 15-file corpus;
  • standardize about 425 ms;
  • p50 1674 / p95 2112 ms in total.

A DuckDB-file catalog can't be held open across requests: the handle would lock out the runner pods' writes.

Done when a file-catalog dataset resolves from a session that holds no lake handle. When the catalog or its WAL changes, the session lists the corpus and membership data files from the lake, then reads them directly with read_parquet. Each call prefilters on cached keys and reads only the candidates. A corpus with delete files or inlined rows falls back to resolving through the lake. Answers must equal the lake resolve exactly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions