You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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
1 year ago
..
api Add infinite scroll user option (#3572) 1 year ago
api_common Make `lemmy_api_common` wasm-compatible (#3587) 1 year ago
api_crud Make `lemmy_api_common` wasm-compatible (#3587) 1 year ago
apub Split activity table into sent and received parts (fixes #3103) (#3583) 1 year ago
db_schema Split activity table into sent and received parts (fixes #3103) (#3583) 1 year ago
db_views Make `lemmy_api_common` wasm-compatible (#3587) 1 year ago
db_views_actor Make `lemmy_api_common` wasm-compatible (#3587) 1 year ago
db_views_moderator Make `lemmy_api_common` wasm-compatible (#3587) 1 year ago
routes Make functions work with both connection and pool (#3420) 1 year ago
utils Fix wrong SMTP port when TLS is being used (fixes #3574) (#3607) 1 year ago