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
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
config.ex argon2 password hashing (#406) 2022-12-30 02:46:58 +00:00
count_statuses.ex
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
ecto.ex
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
openapi_spec.ex
refresh_counter_cache.ex
relay.ex Documentation updates for stable release (#73) 2022-07-15 12:27:16 +00:00
robots_txt.ex
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