Rename index for faster database restore #455
No reviewers
Labels
No labels
approved, awaiting change
bug
configuration
documentation
duplicate
enhancement
extremely low priority
feature request
Fix it yourself
help wanted
invalid
mastodon_api
needs docs
needs tests
not a bug
planned
pleroma_api
privacy
question
static_fe
triage
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: AkkomaGang/akkoma#455
Loading…
Reference in a new issue
No description provided.
Delete branch "ilja/akkoma:rename_index_for_faster_restore"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
fix #440
I manually changed the index name. On a 10G dump it took ~30min to restore with this rename. I don't know exactly how long it took without renaming the index, but I tried and cancelled the operation after it was already stuck on the problematic index for over 1h.
I also saw that the renamed index is indeed the very first index that's being restored (and before the "problematic" activities_visibility_index).
Renaming the index:
It's a bit dirty because we go away from naming conventions, but if it works, I think it's worth it.
[1]
Excerpt from the output from restoring the DB. We see the renamed index being the first index restored (2nd output line), and the "problematic" visibility index only later (last output line of this excerpt).
WIP: Rename index for faster database restoreto Rename index for faster database restore32658dafd6
to972a73aea9
972a73aea9
to3b634dcbe7
hehe that's a nice index name
aa
looks good, thankies