sql - Creating a quicker MySQL Query -


I am trying to create a quick query, now I have large databases, my table size 5 col, 530k rows, And 300 col, 4k rows (Unfortunately I have more control than architecture 0, otherwise I would not be getting this silly problem with a poor db). As the date

 > cast (as table2.foo_1 date), select table1. *, Table2.foo_2, foo_3, foo_4, foo_5, foo_6, foo_7, foo_8, foo_9, foo_10, foo_11, foo_12, foo_13, foo_14, foo_15, foo_16, foo_17, foo_18, foo_19, foo_20, table1 to foo_21, table2 ou table2 Foo_0 = table1.foo_0 and table1.bar1 & gt; = NOW () and foo_20 = "Tada" by date LIMIT in Order 0,10  

I hope that it will be allowed to be quickly queryed in table2.foo_0 and table1 .foo_0 is indexed with foo_20 .. I'm still doing load time less than 7 seconds .. There is something else I can do

CHEES

I think there is an index key on bar 1 I always go with dates in execution issues Nki he has to compare each 530K rows.


Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -