Skip to content

Comments

Fix a couple database startup issues#5901

Merged
lutter merged 7 commits intomasterfrom
lutter/sharded
Mar 24, 2025
Merged

Fix a couple database startup issues#5901
lutter merged 7 commits intomasterfrom
lutter/sharded

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