Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

特定の条件に従ってレコードを抽出しパージするバッチ機能 #15529

Open
1 task
samunohito opened this issue Feb 21, 2025 · 2 comments
Open
1 task
Labels
✨Feature This adds/improves/enhances a feature 🧑‍🔧Maintenance Related issues for maintaining server functionality 👮Moderation Issues to monitor server users and content and maintain public safety. packages/backend Server side specific issue/PR

Comments

@samunohito
Copy link
Member

samunohito commented Feb 21, 2025

Summary

ある特定の条件に従って抽出されたレコード等を削除し、DBやストレージの容量を解放するためのバッチ機能を提案します。
共通する要件としてはこんなイメージで。

  • モデレータが手動で起動する or タイマー起動 or システムの状態契機で出来たら…?
  • バッチ起動可のadminロールがないと起動できないようにするとよい
  • 1回の実行で何件処理するか、何回実行するか、実行間隔はどれくらいかを指定できる

いま思いつく処理内容を列挙します。全部一気に動くのではなく、個別に存在するイメージです。

  • リモートノートのうち、リアクションもリノートもクリップもされてないもの(以降、無反応ノートと呼ぶ)をパージする
  • 410が届いたサーバ(後から判別がつくかどうかは調査してないので要検討)の無反応ノートをパージする
  • 一定期間更新が無いリモートユーザをパージする(全ノートが無反応ノートだった場合のみ or 論理削除されたユーザも)

Purpose

サーバのストレージを解放できる

Do you want to implement this feature yourself?

  • Yes, I will implement this by myself and send a pull request
@samunohito samunohito added packages/backend Server side specific issue/PR ✨Feature This adds/improves/enhances a feature 👮Moderation Issues to monitor server users and content and maintain public safety. 🧑‍🔧Maintenance Related issues for maintaining server functionality labels Feb 21, 2025
@samunohito
Copy link
Member Author

@5ouma
Copy link
Contributor

5ouma commented Feb 22, 2025

related: #9972, #12278, #14886

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨Feature This adds/improves/enhances a feature 🧑‍🔧Maintenance Related issues for maintaining server functionality 👮Moderation Issues to monitor server users and content and maintain public safety. packages/backend Server side specific issue/PR
Projects
Development

No branches or pull requests

2 participants