akkoma/test/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 Upgrade Ecto to v3.6.2, remove deprecated ecto_explain 2021-06-23 13:22:32 -05:00
app_test.exs Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
config_test.exs Remove quack, ensure adapter is finch 2022-12-11 23:22:35 +00:00
count_statuses_test.exs Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
database_test.exs prune_objects can prune orphaned activities who reference an array of objects 2023-02-26 14:41:50 +01:00
digest_test.exs Fix digest test 2022-06-29 20:45:05 +01:00
ecto_test.exs Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
email_test.exs Merge branch 'develop' into refactor/deactivated_user_field 2021-01-18 14:58:21 -06:00
emoji_test.exs Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
frontend_test.exs Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
instance_test.exs Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
refresh_counter_cache_test.exs Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
relay_test.exs Don't persist local undone follow (#194) 2022-08-31 18:00:36 +00:00
robots_txt_test.exs Convert tests to all use clear_config instead of Pleroma.Config.put 2021-01-26 11:58:43 -06:00
uploads_test.exs Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
user_test.exs Ensure consistent behavior between pleroma.user activate/deactivate mix tasks 2021-01-25 10:48:28 -06:00