# Pourquoi mes données PostgreSQL de Discourse sont-elles trop volumineuses ?

**URL:** <https://meta.discourse.org/t/why-my-discourse-postgres-data-is-too-big/91657>\
**Category:** Self-hosting\
**Created:** [Juillet 5, 2018, 8: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:** 15

<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:** [Juin 1, 2020, 8:09 UTC](https://meta.discourse.org/t/why-my-discourse-postgres-data-is-too-big/91657/15 "2020-06-01T20:09:54Z")

</div>

Compléter les informations ci-dessus avec `rake db:stats` :

## table\_name | row\_estimate | table\_size | index\_size | total\_size

posts | 8847417 | 39 Go | 12 Go | 51 Go  
post\_search\_data | 5880635 | 8377 Mo | 1392 Mo | 9769 Mo  
post\_timings | 23728606 | 1571 Mo | 2430 Mo | 4001 Mo  
user\_actions | 5424982 | 488 Mo | 1657 Mo | 2144 Mo  
post\_custom\_fields | 5832468 | 429 Mo | 609 Mo | 1039 Mo

J’ai vu d’autres exemples où 10 millions de lignes pour la table posts se traduisent par environ 15 Go. Nous avons maintenant 8 millions de lignes avec une taille de 39 Go.

Y a-t-il un moyen d’optimiser cela ?

---

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