Modify

Opened 12 years ago

Closed 12 years ago

#57 closed Erweiterung (fixed)

Indizes in customers_basket und customers_basket_attributes

Reported by: info@… Owned by: somebody
Priority: normal Milestone: DB-Performance
Component: Shop Version: 1.06
Keywords: Cc:
Blocked By: Blocking:

Description (last modified by Torsten Riemer)

Hallo,

meiner Meinung nach, sollten die Tabellen customers_basket und customers_basket_attributes unbedingt ein paar mehr Indizes bekommen...

customers_basket

auf jeden Fall customers_id

products_id evtl. von tinytext auf varchar und auch indiziert

customers_basket_attributes

das gleiche + evtl. auch products_options_id undproducts_options_values_id

Ich war gerade an einem größeren Shop und da haben die Abfragen in der shopping_cart-Klasse ohne Indizes mindestens 1.5 Sekunden extra pro Seitenaufruf gekostet...

Beste Grüße

Marcus

Attachments (0)

Change History (3)

comment:1 by Torsten Riemer, 12 years ago

Component: InstallerShop
Description: modified (diff)
Type: Bug/FehlerErweiterung

comment:2 by Torsten Riemer, 12 years ago

Wir haben Die Datenbank in r5295 bzw. r5296 bzw. r5297 jetzt erst einmal um folgende Indizes erweitert:

#GTB - 2013-08-02 - Add new index on customers_basket
ALTER TABLE customers_basket ADD INDEX idx_customers_id (customers_id);

#GTB - 2013-08-02 - Add new index on customers_basket_attributes
ALTER TABLE customers_basket_attributes ADD INDEX idx_customers_id (customers_id);

#GTB - 2013-08-02 - Add new column on orders_products_download
ALTER TABLE orders_products_download ADD download_key VARCHAR(32) NOT NULL DEFAULT '';

#GTB - 2013-08-02 - Add new index on products_images
ALTER TABLE products_images ADD INDEX idx_products_id (products_id);

#GTB - 2013-08-02 - Add new index on sessions
ALTER TABLE sessions ADD INDEX idx_expiry (expiry);

#GTB - 2013-08-02 - Add new index on whos_online
ALTER TABLE whos_online ADD PRIMARY KEY (session_id);
ALTER TABLE whos_online ADD INDEX idx_time_last_click (time_last_click);

#GTB - 2013-08-02 - Add new index on coupons
ALTER TABLE coupons ADD INDEX idx_coupon_code (coupon_code);
Version 0, edited 12 years ago by Torsten Riemer (next)

comment:3 by Simon Heinrich, 12 years ago

Resolution: fixed
Status: newclosed

Thema damit erledigt.

Modify Ticket

Action
as closed The owner will remain somebody.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.