Skip to content

add: load schema cache dump at startup#5031

Draft
mkleczek wants to merge 2 commits into
PostgREST:mainfrom
mkleczek:push-tpxzxqqnpsuv
Draft

add: load schema cache dump at startup#5031
mkleczek wants to merge 2 commits into
PostgREST:mainfrom
mkleczek:push-tpxzxqqnpsuv

Conversation

@mkleczek

Copy link
Copy Markdown
Collaborator

No description provided.

@mkleczek mkleczek force-pushed the push-tpxzxqqnpsuv branch from ecd794f to d6968c9 Compare June 22, 2026 19:07
@mkleczek mkleczek changed the title feat(cli): load schema cache dump at startup add: load schema cache dump at startup Jun 22, 2026
@mkleczek mkleczek force-pushed the push-tpxzxqqnpsuv branch from d6968c9 to 3541b96 Compare June 22, 2026 19:08
@mkleczek mkleczek marked this pull request as draft June 22, 2026 19:09
@mkleczek mkleczek requested a review from steve-chavez June 22, 2026 19:11
@steve-chavez

This comment was marked as outdated.

@steve-chavez

Copy link
Copy Markdown
Member

Helping to clarify, the motivation is to solve the same problems on #4999. This by loading the schema cache from a file.

@steve-chavez

Copy link
Copy Markdown
Member

Q: If the schema cache file is stale, we still pick it up and serve requests as "best effort"?

@mkleczek

Copy link
Copy Markdown
Collaborator Author

Helping to clarify, the motivation is to solve the same problems on #4999. This by loading the schema cache from a file.

@steve-chavez I am still working on the right design and will provide more details soon.

I believe now that we can solve in this PR all pain points we want to solve with materialized views.

@mkleczek

Copy link
Copy Markdown
Collaborator Author

Q: If the schema cache file is stale, we still pick it up and serve requests as "best effort"?

Yes the idea is to treat schema cache preloaded from the dump as stale and trigger asynchronous load from the db.

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants