تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1973 أدوات العرض

I've had to deal with a database of a company whose operation relies heavily on mail campaigns. The emails are kept (the records do not get deleted). So, when the numbers of emails went over 7 million, the mail.mail table peaked at 26GB !!!


Following a suggestion, the mail.mail table was updated so that the body_html field got emptied. After all, the email is connected to a message (mail.message), and we get the original content there.


The result of the udpate was that the mail.mail table went from 26GB to less than 1GB !!!


Here's the question: why do we need to keep a copy of the mail.mail.body field in mail.mail ? What is the purpose of that? In fact, in mail.mail, we get three fields for this: body, body_html and body_content.

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
أغسطس 25
3501
1
ديسمبر 22
5099
0
أغسطس 19
3954
3
سبتمبر 25
1711
2
سبتمبر 25
181