Ich wollte dieses Thema wiederbeleben, da es sich um dasselbe Problem handelt.
Unser Discourse-Ordner postgres_data ist 75 GB groß. Das halte ich für sehr viel. Laut dem Admin-Panel beträgt eine Sicherungskopie etwa 10,5 GB und die Uploads machen rund 9,3 GB aus.
Ich habe geprüft, welche Tabellen den meisten Speicherplatz belegen, und das sind die Ergebnisse:
public.posts | 51 GB
public.post_search_data | 9769 MB
public.post_timings | 3997 MB
public.user_actions | 2144 MB
public.post_custom_fields | 1039 MB
public.topics | 676 MB
public.post_stats | 663 MB
public.post_replies | 643 MB
public.quoted_posts | 523 MB
public.user_visits | 476 MB
public.top_topics | 403 MB
public.user_auth_token_logs | 364 MB
public.topic_links | 353 MB
public.topic_users | 335 MB
public.topic_views | 301 MB
public.user_histories | 220 MB
public.users | 209 MB
public.stylesheet_cache | 194 MB
public.directory_items | 143 MB
public.notifications | 139 MB
Ich frage mich, ob es normal ist, dass die Tabelle public.posts so viel Speicherplatz belegt (51 GB). Wir sprechen hier von einem Forum mit 6 Millionen Beiträgen, was ich nicht als außergewöhnlich betrachte.
Ist das normal?