On advice of the MySQL She-BA, I wanted to see what performance I
could get with MERGE tables. In my particular application I'm
going to need the RI I get with InnoDB, so it's not a solution,
but as long as I am investigating anyway...
Seems simple enough, let me the MERGE table over my existing
tables:
[Read more]
mysql> create table xyz_mt (
-> `id` bigint(10) NOT NULL default '0',
-> `report_dt` date default NULL,
-> `acct_id` varchar(8) default NULL,
-> `some_text` varchar(222) default NULL,
-> PRIMARY KEY (`id`)
-> ) ENGINE=MERGE UNION=(xyz_2007_01,xyz_2007_02,xyz_2007_03) ;
Query OK, 0 rows affected (0.08 sec)
mysql> select id, report_dt, acct_id
-> from xyz_mt
-> where report_dt ='2007-02-17'
-> and acct_id = 'X0000741';
ERROR 1168 (HY000): Unable to …