1
0
Fork 1
mirror of https://akkoma.dev/AkkomaGang/akkoma.git synced 2024-11-18 02:49:18 +00:00
akkoma/lib/mix/tasks/pleroma
ilja 57eef6d764 prune_objects can prune orphaned activities who reference an array of objects
E.g. Flag activities have an array of objects

We prune the activity when NONE of the objects can be found

Note that the cost of finding and deleting these is ~4x higher than finding and deleting the non-array ones

Only string:
Delete on activities  (cost=506573.48..506580.38 rows=0 width=0)

Only Array:
Delete on activities  (cost=3570359.68..4276365.34 rows=0 width=0)

(They are still executed separately, so the total cost is the sum of the two)
2023-02-26 14:41:50 +01:00
..
ecto Merge branch 'ecto-rollback-in-test-env' into 'develop' 2021-02-26 16:47:53 +00:00
search fix compatibility with meilisearch (#164) 2022-08-16 22:56:49 +00:00
activity.ex giant massive dep upgrade and dialyxir-found error emporium (#371) 2022-12-14 12:38:48 +00:00
app.ex Documentation updates for stable release (#73) 2022-07-15 12:27:16 +00:00
benchmark.ex Use finch everywhere (#33) 2022-07-04 16:30:38 +00:00
config.ex argon2 password hashing (#406) 2022-12-30 02:46:58 +00:00
count_statuses.ex Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
database.ex prune_objects can prune orphaned activities who reference an array of objects 2023-02-26 14:41:50 +01:00
diagnostics.ex giant massive dep upgrade and dialyxir-found error emporium (#371) 2022-12-14 12:38:48 +00:00
digest.ex Documentation updates for stable release (#73) 2022-07-15 12:27:16 +00:00
docs.ex Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
ecto.ex Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
email.ex Documentation updates for stable release (#73) 2022-07-15 12:27:16 +00:00
emoji.ex Documentation updates for stable release (#73) 2022-07-15 12:27:16 +00:00
frontend.ex Documentation updates for stable release (#73) 2022-07-15 12:27:16 +00:00
instance.ex giant massive dep upgrade and dialyxir-found error emporium (#371) 2022-12-14 12:38:48 +00:00
notification_settings.ex Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
openapi_spec.ex OpenAPI spec task: Load pleroma application to get version info 2021-02-09 22:10:09 +03:00
refresh_counter_cache.ex Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
relay.ex Documentation updates for stable release (#73) 2022-07-15 12:27:16 +00:00
robots_txt.ex Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
search.ex giant massive dep upgrade and dialyxir-found error emporium (#371) 2022-12-14 12:38:48 +00:00
uploads.ex Documentation updates for stable release (#73) 2022-07-15 12:27:16 +00:00
user.ex giant massive dep upgrade and dialyxir-found error emporium (#371) 2022-12-14 12:38:48 +00:00