akkoma/lib/pleroma/web/admin_api
Oneric ffeb70f787 Drop counter_cache stubbing out /api/v1/pleroma/admin/stats
It only served for a niche, admin nice-to-have informational stat
without too much value but was unreasonably costly to maintain
adding overhead with multiple queries added to all modifications
to the fairly busy activities table.

The database schema of the counter table and the activity_visibility function
used for counter updates also did not know about "local" visibility (nor the
recently removed "list" visibility) and misattributed them to the "direct" counter.

On my small instance this nearly halved the average
insert time for activiteis from 0.926 ms to 0.465 ms.
2025-11-17 00:00:00 +00:00
..
controllers Drop counter_cache stubbing out /api/v1/pleroma/admin/stats 2025-11-17 00:00:00 +00:00
views Migrate Pleroma.Web to phoenix 1.6 formats 2023-01-02 03:29:02 +00:00
report.ex AdminAPI: hotfix for nil report objects 2021-08-13 17:57:39 +02:00
search.ex Merge remote-tracking branch 'pleroma/develop' into admin-api-users-sort 2021-07-13 22:47:47 -05:00