Jacob Friis Larsen <[EMAIL PROTECTED]> wrote on 28/01/2005 11:23:46:

> We have a table that grow by 200MB each day.
> 
> Should we put data in different tables or is one big table just as fast?
> We will for new data do select, update and insert and for old data 
> only select.

It is not possible to answer in the general case - you would need to 
explain more about your table and usage patterns.

However, if you can use MyISAM tables, you should at least consider using 
MERGE tables:
http://dev.mysql.com/doc/mysql/en/merge-storage-engine.html

If your database is "well indexed" and your searches can generate 
relatively small amounts of data on the first key used, the overhead of 
having enormous files is small. At the other end, if the MySQL is reduced 
to a linear search, the impact of a huge file is enormous.

If most of your SELECTs are on "recent" data, it is work considering 
splitting the table into daily, weekly, or monthly sub-tables. This means 
that you can archive very old months, and pack recent months, while 
keeping only the current month active. But if you need to search the 
entire archive frequently, this will reduce performance.

        Alec


-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to