lemmy/crates/db_schema/src/source
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 Group imports dess (#2526) 2022-11-02 15:18:22 -04:00
captcha_answer.rs feat: re-added captcha checks (#3289) 2023-06-27 06:38:53 -04:00
comment.rs Fall back to String for Comment::path when not using the full feature (#2941) 2023-06-07 09:38:46 -04:00
comment_reply.rs Adding comments to all API related types. Fixes #2846 (#2848) 2023-05-10 21:20:39 +02:00
comment_report.rs Adding comments to all API related types. Fixes #2846 (#2848) 2023-05-10 21:20:39 +02:00
community.rs Use serde(skip) instead of skip_serializing, add placeholder values (#3362) 2023-07-03 15:14:01 +02:00
community_block.rs Group imports dess (#2526) 2022-11-02 15:18:22 -04:00
custom_emoji.rs Adding comments to all API related types. Fixes #2846 (#2848) 2023-05-10 21:20:39 +02:00
custom_emoji_keyword.rs Adding comments to all API related types. Fixes #2846 (#2848) 2023-05-10 21:20:39 +02:00
email_verification.rs Group imports dess (#2526) 2022-11-02 15:18:22 -04:00
federation_allowlist.rs Group imports dess (#2526) 2022-11-02 15:18:22 -04:00
federation_blocklist.rs Group imports dess (#2526) 2022-11-02 15:18:22 -04:00
instance.rs Adding comments to all API related types. Fixes #2846 (#2848) 2023-05-10 21:20:39 +02:00
language.rs Adding comments to all API related types. Fixes #2846 (#2848) 2023-05-10 21:20:39 +02:00
local_site.rs Remove `actix_rt` & use standard tokio spawn (#3158) 2023-06-26 10:24:11 +02:00
local_site_rate_limit.rs Adding comments to all API related types. Fixes #2846 (#2848) 2023-05-10 21:20:39 +02:00
local_user.rs Add infinite scroll user option (#3572) 2023-07-12 09:12:01 -04:00
local_user_language.rs Diesel 2.0.0 upgrade (#2452) 2022-09-26 14:09:32 +00:00
mod.rs Use serde(skip) instead of skip_serializing, add placeholder values (#3362) 2023-07-03 15:14:01 +02:00
moderator.rs Adding comments to all API related types. Fixes #2846 (#2848) 2023-05-10 21:20:39 +02:00
password_reset_request.rs Group imports dess (#2526) 2022-11-02 15:18:22 -04:00
person.rs Use serde(skip) instead of skip_serializing, add placeholder values (#3362) 2023-07-03 15:14:01 +02:00
person_block.rs Group imports dess (#2526) 2022-11-02 15:18:22 -04:00
person_mention.rs Adding comments to all API related types. Fixes #2846 (#2848) 2023-05-10 21:20:39 +02:00
post.rs Adding comments to all API related types. Fixes #2846 (#2848) 2023-05-10 21:20:39 +02:00
post_report.rs Adding comments to all API related types. Fixes #2846 (#2848) 2023-05-10 21:20:39 +02:00
private_message.rs Adding comments to all API related types. Fixes #2846 (#2848) 2023-05-10 21:20:39 +02:00
private_message_report.rs Adding comments to all API related types. Fixes #2846 (#2848) 2023-05-10 21:20:39 +02:00
registration_application.rs Adding comments to all API related types. Fixes #2846 (#2848) 2023-05-10 21:20:39 +02:00
secret.rs Diesel 2.0.0 upgrade (#2452) 2022-09-26 14:09:32 +00:00
site.rs Check for dead federated instances (fixes #2221) (#3427) 2023-07-13 16:12:01 +02:00
tagline.rs Adding comments to all API related types. Fixes #2846 (#2848) 2023-05-10 21:20:39 +02:00