OSCommerceインデックス

|

●Index化 の例
*遅いと感じたときだけやること
*index化しても変わらない時は、削除すること
削除例 :
ALTER TABLE products DROP INDEX idx_products_status;
・新着商品が遅い
ALTER TABLE products ADD INDEX idx_products_status (products_status);
・特価商品が遅い
ALTER TABLE specials ADD INDEX idx_products_id (products_id);
・カテゴリーが遅い
alter table categories add index idx_parent_id(parent_id);
alter table categories add index idx_sort_order(sort_order);
alter table categories add index idx_categories_id(categories_id);
・ログインが遅い
alter table customers add index idx_customers_email_address(customers_email_address);
・申込み処理が遅い(オーダーが一杯溜まった)
alter table orders add index idx_customers_id(customers_id);
・商品表示が遅い(categories_description周辺)
alter table categories_description add index idx_categories_id(categories_id);
・個別商品の表示が遅い
alter table products add index idx_products_model(products_model);
alter table products add index idx_products_price(products_price);
alter table products add index idx_products_date_available(products_date_available);
alter table products add index idx_manufacturers_id(manufacturers_id);


・個別商品の商品表示が遅い(オプションが一杯あって)
alter table products_options add index idx_products_options_name(products_options_name);
alter table products_attributes add index idx_products_id(products_id);
alter table products_attributes add index idx_options_id(options_id);

カテゴリ

このブログ記事について

このページは、adminが2007年7月24日 18:43に書いたブログ記事です。

ひとつ前のブログ記事は「sendmailのX-Authentication-Warning」です。

次のブログ記事は「make_sock: could not bind to address 0.0.0.0:443」です。

最近のコンテンツはインデックスページで見られます。過去に書かれたものはアーカイブのページで見られます。