Mysql

From Sum-e Wiki

Revision as of 15:05, 8 June 2009 by 84.92.83.234 (Talk)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search

explain query

explain select * from product join category on product.category = category.id;

add table index

alter table product add index category_idx ( category );

alter table product_category add index category_product_idx ( category, product ); // to be confirmed / tested