lemmy/crates
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 Add infinite scroll user option (#3572) 2023-07-12 09:12:01 -04:00
api_common Make lemmy_api_common wasm-compatible (#3587) 2023-07-14 10:45:18 +02:00
api_crud Make lemmy_api_common wasm-compatible (#3587) 2023-07-14 10:45:18 +02:00
apub Split activity table into sent and received parts (fixes #3103) (#3583) 2023-07-14 11:17:06 -04:00
db_schema Split activity table into sent and received parts (fixes #3103) (#3583) 2023-07-14 11:17:06 -04:00
db_views Make lemmy_api_common wasm-compatible (#3587) 2023-07-14 10:45:18 +02:00
db_views_actor Make lemmy_api_common wasm-compatible (#3587) 2023-07-14 10:45:18 +02:00
db_views_moderator Make lemmy_api_common wasm-compatible (#3587) 2023-07-14 10:45:18 +02:00
routes Make functions work with both connection and pool (#3420) 2023-07-11 09:09:59 -04:00
utils Fix wrong SMTP port when TLS is being used (fixes #3574) (#3607) 2023-07-13 13:10:14 +02:00