lemmy/crates/db_schema/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
..
aggregates Make functions work with both connection and pool (#3420) 2023-07-11 09:09:59 -04:00
impls Split activity table into sent and received parts (fixes #3103) (#3583) 2023-07-14 11:17:06 -04:00
source Split activity table into sent and received parts (fixes #3103) (#3583) 2023-07-14 11:17:06 -04:00
diesel_ltree.patch feat: re-added captcha checks (#3289) 2023-06-27 06:38:53 -04:00
lib.rs Feature add three six and nine months options backend (#3226) 2023-06-26 15:03:35 -04:00
newtypes.rs Adding comments to all API related types. Fixes #2846 (#2848) 2023-05-10 21:20:39 +02:00
schema.rs Split activity table into sent and received parts (fixes #3103) (#3583) 2023-07-14 11:17:06 -04:00
traits.rs Make functions work with both connection and pool (#3420) 2023-07-11 09:09:59 -04:00
utils.rs Make functions work with both connection and pool (#3420) 2023-07-11 09:09:59 -04:00