# Warum ist mein discourse postgres\_data zu groß?

**URL:** <https://meta.discourse.org/t/why-my-discourse-postgres-data-is-too-big/91657>\
**Category:** Self-hosting\
**Created:** [5. Juli 2018 um 20:54 UTC](https://meta.discourse.org/t/why-my-discourse-postgres-data-is-too-big/91657 "2018-07-05T20:54:31Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![Paracelsus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/paracelsus/32/164912_2.png) [@Paracelsus](https://meta.discourse.org/u/Paracelsus)\
**Post date:** [1. Juni 2020 um 07:48 UTC](https://meta.discourse.org/t/why-my-discourse-postgres-data-is-too-big/91657/14 "2020-06-01T07:48:55Z")

</div>

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?

---

_[View the full topic](https://meta.discourse.org/t/why-my-discourse-postgres-data-is-too-big/91657)._
