lemmy/crates/db_schema/src/impls
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
..
activity.rs Split activity table into sent and received parts (fixes #3103) (#3583) 2023-07-14 11:17:06 -04:00
actor_language.rs work around race condition on community fetch (#3414) 2023-07-14 14:57:36 +02:00
captcha_answer.rs Make functions work with both connection and pool (#3420) 2023-07-11 09:09:59 -04:00
comment.rs Make functions work with both connection and pool (#3420) 2023-07-11 09:09:59 -04:00
comment_reply.rs Make functions work with both connection and pool (#3420) 2023-07-11 09:09:59 -04:00
comment_report.rs Make functions work with both connection and pool (#3420) 2023-07-11 09:09:59 -04:00
community.rs Make functions work with both connection and pool (#3420) 2023-07-11 09:09:59 -04:00
community_block.rs Make functions work with both connection and pool (#3420) 2023-07-11 09:09:59 -04:00
custom_emoji.rs Make functions work with both connection and pool (#3420) 2023-07-11 09:09:59 -04:00
email_verification.rs Make functions work with both connection and pool (#3420) 2023-07-11 09:09:59 -04:00
federation_allowlist.rs Make functions work with both connection and pool (#3420) 2023-07-11 09:09:59 -04:00
federation_blocklist.rs Make functions work with both connection and pool (#3420) 2023-07-11 09:09:59 -04:00
instance.rs Check for dead federated instances (fixes #2221) (#3427) 2023-07-13 16:12:01 +02:00
language.rs Make functions work with both connection and pool (#3420) 2023-07-11 09:09:59 -04:00
local_site.rs Make functions work with both connection and pool (#3420) 2023-07-11 09:09:59 -04:00
local_site_rate_limit.rs Make functions work with both connection and pool (#3420) 2023-07-11 09:09:59 -04:00
local_user.rs Make functions work with both connection and pool (#3420) 2023-07-11 09:09:59 -04:00
mod.rs feat: re-added captcha checks (#3289) 2023-06-27 06:38:53 -04:00
moderator.rs Make functions work with both connection and pool (#3420) 2023-07-11 09:09:59 -04:00
password_reset_request.rs Make functions work with both connection and pool (#3420) 2023-07-11 09:09:59 -04:00
person.rs Make functions work with both connection and pool (#3420) 2023-07-11 09:09:59 -04:00
person_block.rs Make functions work with both connection and pool (#3420) 2023-07-11 09:09:59 -04:00
person_mention.rs Make functions work with both connection and pool (#3420) 2023-07-11 09:09:59 -04:00
post.rs Make functions work with both connection and pool (#3420) 2023-07-11 09:09:59 -04:00
post_report.rs Make functions work with both connection and pool (#3420) 2023-07-11 09:09:59 -04:00
private_message.rs Make functions work with both connection and pool (#3420) 2023-07-11 09:09:59 -04:00
private_message_report.rs Make functions work with both connection and pool (#3420) 2023-07-11 09:09:59 -04:00
registration_application.rs Make functions work with both connection and pool (#3420) 2023-07-11 09:09:59 -04:00
secret.rs Make functions work with both connection and pool (#3420) 2023-07-11 09:09:59 -04:00
site.rs Check for dead federated instances (fixes #2221) (#3427) 2023-07-13 16:12:01 +02:00
tagline.rs Make functions work with both connection and pool (#3420) 2023-07-11 09:09:59 -04:00