lemmy/src
Nutomic e9e76549a8
Split activity table into sent and received parts (fixes #3103) (#3583)
* Split activity table into sent and received parts (fixes #3103)

The received activities are only stored in order to avoid processing
the same incoming activity multiple times. For this purpose it is
completely unnecessary to store the data. So we can split the
table into sent_activity and received_activity parts, where
only sent_activity table needs to store activity data. This should
reduce storage use significantly.

Also reduces activity storage duration to three months, we can reduce
this further if necessary.

Additionally the id columns of activity tables are removed because
they are completely unused and risk overflowing (fixes #3560).

* address review

* move insert_received_activity() methods to verify handlers

* remove unnecessary conflict line

* clippy

* use on conflict, add tests
2023-07-14 11:17:06 -04:00
..
api_routes_http.rs Improve api response times by doing send_activity asynchronously (#3493) 2023-07-10 12:27:49 +02:00
code_migrations.rs Make functions work with both connection and pool (#3420) 2023-07-11 09:09:59 -04:00
lib.rs Make functions work with both connection and pool (#3420) 2023-07-11 09:09:59 -04:00
main.rs Remove `actix_rt` & use standard tokio spawn (#3158) 2023-06-26 10:45:22 +02:00
prometheus_metrics.rs Make functions work with both connection and pool (#3420) 2023-07-11 09:09:59 -04:00
root_span_builder.rs Fixing `.drone.yml` (#2677) 2023-01-30 14:17:24 -05:00
scheduled_tasks.rs Split activity table into sent and received parts (fixes #3103) (#3583) 2023-07-14 11:17:06 -04:00
telemetry.rs Extract Activitypub logic into separate library (#2288) 2022-06-02 16:33:41 +02:00