dbTalk Databases Forums  

Splitting large tables and creating MERGE tables

mailing.database.myodbc mailing.database.myodbc


Discuss Splitting large tables and creating MERGE tables in the mailing.database.myodbc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
N. Sloane
 
Posts: n/a

Default Splitting large tables and creating MERGE tables - 08-20-2007 , 07:06 AM






Hi,

I've currently got a sizeable MySQL database (using MyISAM tables)
where one table holds about 5 million entries, and SELECT queries are
really starting to slow down.

It seems that it would probably be more beneficial to split this down
into a few hundred tables and access the data via a MERGE table.

I can easily write a PHP script to recursively create the new tables
and move the relevant data accross to the new tables, then I can
create the new MERGE table.

My query is that because the current table is indexed, when I split
the existing table out into smaller tables, should I re-index each
table before I create the MERGE table ?

Thanks
Neil.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.