Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a couple database startup issues #5901

Merged
merged 7 commits into from
Mar 24, 2025
Merged

Fix a couple database startup issues #5901

merged 7 commits into from
Mar 24, 2025

Conversation

lutter
Copy link
Collaborator

@lutter lutter commented Mar 21, 2025

No description provided.

@lutter lutter requested a review from encalypto March 21, 2025 16:27
lutter added 4 commits March 22, 2025 09:49
Analyzing earlier makes it so that Postgres has statistics when rewinding
the subgraph
It's only maintained in the primary, and there's no point in mapping it
across shards
lutter added 3 commits March 23, 2025 10:46
When creating many copies with a shell script, it is useful to have the
deployment we are trying to copy in the error message
With recent changes, the status shown was '>' (in progress) for all tables
that hadn't finished yet, not just the one being worked on
At the point where we create the postponed indexes during copying, nothing
else is writing to the subgraph and we can't be blocking a writer with a
normal 'create index'. Since concurrent index creation has to wait for all
previous transactions in the database to finish, the concurrent creation
can significantly slow down index creation and therefore how long the copy
takes.
@lutter lutter merged commit dde111c into master Mar 24, 2025
6 checks passed
@lutter lutter deleted the lutter/sharded branch March 24, 2025 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants