innodb - mySQL subquery/join across database? -


i have result set of 33 million records.

i need remove records based on result set of 10 million records based on id.

this should take care of problem, since db1 myisam it's way slow:

 select id db1.table1 id not in (   select id   db1.table2 ) result order id 

i have second database has same data innodb engine big 32 million result. possible? 1 bit out of league. any/all suggestions welcome.

 select id db2.table1 id not in (   select id   db1.table2 ) result order id 

as long databases exist on same host - yes, no problem, can join on more 1 database (assuming have sufficient privileges access tables).

wouldn't easier try instead of asking here? or did miss something?


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -