Slide 27
Slide 27 text
© 2023 Database Technology Inc. All Rights Reserved. 27
追加で作成した索引
ALTER TABLE lineorder_flat
add KEY index1 (LO_DISCOUNT,LO_QUANTITY,LO_ORDERDATE_YEAR,LO_ORDERDATE_WEEK),
add KEY index2 (LO_DISCOUNT,LO_QUANTITY,LO_ORDERDATE_MONTH),
add KEY index4 (S_REGION,P_CATEGORY,P_BRAND,LO_ORDERDATE_YEAR),
add KEY index5 (S_REGION,P_BRAND, LO_ORDERDATE_YEAR),
add KEY index7 (C_REGION,S_REGION,LO_ORDERDATE_YEAR,C_NATION,S_NATION),
add KEY index8 (C_NATION,S_NATION,C_CITY,S_CITY,LO_ORDERDATE_YEAR),
add KEY index9 (C_CITY,S_CITY,LO_ORDERDATE_YEAR),
add KEY index10 (C_CITY,S_CITY,LO_ORDERDATE_MONTH),
add KEY index11 (C_REGION,S_REGION,P_MFGR,LO_ORDERDATE_YEAR,C_NATION,S_NATION,P_CATEGORY),
add KEY index13 (S_NATION,P_CATEGORY,LO_ORDERDATE_YEAR,S_CITY,P_BRAND)
;