위의 정보를 rake db:stats로 보충하면 다음과 같습니다:
table_name | row_estimate | table_size | index_size | total_size
posts | 8847417 | 39 GB | 12 GB | 51 GB
post_search_data | 5880635 | 8377 MB | 1392 MB | 9769 MB
post_timings | 23728606 | 1571 MB | 2430 MB | 4001 MB
user_actions | 5424982 | 488 MB | 1657 MB | 2144 MB
post_custom_fields | 5832468 | 429 MB | 609 MB | 1039 MB
posts 테이블이 1,000만 행일 때 약 15GB 정도인 다른 사례들을 본 적이 있습니다. 현재 우리는 800만 행인데 크기가 39GB입니다.
이를 최적화할 방법이 있을까요?