Skip to content

Cache: a write endpoint's cache block without template-file runs the write statement a second time #276

Backlog

Description

@jrosskopf

Repro: a POST endpoint with INSERT ... and cache: {table: items_cache, invalidate-on-write: true} (no template-file). Result:

  • one POST inserts two rows;
  • the cache stays empty;
  • the audit records a successful full refresh.

refreshDuckLakeCache (src/cache_manager.cpp:~721) falls back to the endpoint's own template, here the INSERT. A write endpoint's cache block should require template-file (or warn specifically). CONFIG_REFERENCE §8.2's example has been fixed to name the table and template.
Found while writing and reviewing the task guides (#272).

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