Tweak users database indexes and drop exclude_visibilities #1019
No reviewers
Labels
No labels
approved, awaiting change
broken setup
bug
cannot reproduce
configuration
documentation
duplicate
enhancement
extremely low priority
feature request
Fix it yourself
help wanted
invalid
mastodon_api
needs change/feedback
needs docs
needs tests
not a bug
not our bug
planned
pleroma_api
privacy
question
static_fe
triage
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
AkkomaGang/akkoma!1019
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "Oneric/akkoma:db-index-tweaks"
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?
Acting on the remaining insights from #764. Not all parts implemented yet, but can also be merged piecewise.
activity_visibilitywhich duplicates existing elixir code but is not aware of all actually existing visibility modes (miscategoriseslocalas well as recently removed modes)(we can remove this function when the index is gone)
aa_users_ap_id_COALESCE_follower_address_indexFor our queries, it is redundant with
users_ap_id_index. The only use it can serve is that from its haky renaming to start withaa_it is more likely to be restored before the activity visibility index needs itAfter this is all done, it might be good to (reset statistics and) collect new data about index issues / db health and SQL statement outliers from a diverse set of instances.
6865248dbc799e3400f5799e3400f518b3b5d65b18b3b5d65bba0e396adeba0e396ade453ab11fb2As it turns out,
activity_visibilityis only really used forthread_containmentdirecttimeline (which is consistently buggy in large instances)exclude_visibilitiesparameter which is very likely unusedSo rather than going ahead with promoting visibility to a full column, let’s tentatively drop support for
exclude_visibilitiesnow and migrate akkoma-fe to the conversations API (which imho is better anyway) and then just completely dropactivity_visibilityetcTweak and cleanup database indexesto Tweak users database indexes and drop exclude_visibilities