What is a managed way to store emails for extended periods of time?

If you have a website that sends an email to a client and want to keep a copy of the letter, what is an effective strategy?

If you save it in a table in your database (for example, create a table called Mail), it will be very large very quickly.

Some strategies I've seen are as follows:

  • Save it to the file system
  • Run the scheduled task to delete old records from the database, but then you will not get a copy;
  • Create a separate table for each time frame (every year or every month).

What strategies did you use?

+3
source share
7 answers

, gmail -.

, , , ?

.

, , , . , .

+6

, , . , , (, ). , ? , . , , , , , , .

+4

: 1. windows/ 2. .

, , . , , MailStore (home), .

+3

( ) , , , , , .

+2

. . . , , , .

+1

. . 32 000 ( - 50 ), 16 .

, , GMail () 7 . .

0

- . , .

, , , heirachy ( ) . , , .

, DVD, , - .

If you want to often search for actual email content, then you will need to put the content in a DB table or use an index such as Lucerne to check files stored on disk.

0
source

Source: https://habr.com/ru/post/1696747/


All Articles