バージョン選択

フォーラム

メニュー

オンライン状況

51 人のユーザが現在オンラインです。 (41 人のユーザが フォーラム を参照しています。)
登録ユーザ: 0
ゲスト: 51
もっと...

サイト内検索

機能要望 > その他 > MySQL での一覧商品表示の速度向上について

その他

新規スレッドを追加する

フラット表示 前のトピック | 次のトピック
投稿者 スレッド
lucky7
投稿日時: 2009/3/26 0:31
対応状況: −−−
一人前
登録日: 2008/6/2
居住地: 東京近郊
投稿: 101
Re: MySQL での一覧商品表示の速度向上について
seasoftさん
>別解にて回避できたようですね。
詳細画面の表示は早くなりました^^
ただ、目的の一覧画面の最適化は相変わらずエラーです><

hakaselabさん
このたびは貴重な情報ありがとうございます!
ただ、残念ながらまだうまく機能させられていません><

現在のソース
"vw_products_allclass" => '
(SELECT
pr.product_id
,pl.product_code_min
,pl.product_code_max
,pl.price01_min
,pl.price01_max
,pl.price02_min
,pl.price02_max
,pl.stock_min
,pl.stock_max
,pl.stock_unlimited_min
,pl.stock_unlimited_max
,pr.del_flg
,pr.status
,pr.name
,pr.comment1
,pr.comment2
,pr.comment3
,pr.comment4
,pr.comment5
,pr.comment6
,pr.comment7
,pr.comment8
,pr.comment9
,pr.comment10
,pr.comment11
,pr.comment12
,pr.comment13
,pr.comment14
,pr.comment15
,pr.comment16
,pr.comment17
,pr.comment18
,pr.comment19
,pr.comment20
,pr.comment21
,pr.comment22
,pr.comment23
,pr.comment24
,pr.comment25
,pr.update_date
,pr.main_list_comment
,pr.main_image
,pr.main_list_image
,pr.product_flag
,pr.deliv_date_id
,pr.sale_limit
,pr.point_rate
,pr.sale_unlimited
,pr.create_date
,pr.deliv_fee
,pc.rank
,cc.rank AS category_rank
,cc.category_id
FROM
(((SELECT
product_id as product_id_sub
,MIN(product_code) AS product_code_min
,MAX(product_code) AS product_code_max
,MIN(price01) AS price01_min
,MAX(price01) AS price01_max
,MIN(price02) AS price02_min
,MAX(price02) AS price02_max
,MIN(stock) AS stock_min
,MAX(stock) AS stock_max
,MIN(stock_unlimited) AS stock_unlimited_min
,MAX(stock_unlimited) AS stock_unlimited_max
FROM dtb_products_class GROUP BY product_id
) AS pl
LEFT JOIN dtb_products AS pr ON pl.product_id_sub = pr.product_id) LEFT JOIN dtb_product_categories AS pc ON pr.product_id = pc.product_id) LEFT JOIN dtb_category AS cc ON pc.category_id = cc.category_id) ',

エラー内容
DB Error: syntax error

SELECT DISTINCT product_id FROM
(SELECT
pr.product_id
,pl.product_code_min
,pl.product_code_max
,pl.price01_min
,pl.price01_max
,pl.price02_min
,pl.price02_max
,pl.stock_min
,pl.stock_max
,pl.stock_unlimited_min
,pl.stock_unlimited_max
,pr.del_flg
,pr.status
,pr.name
,pr.comment1
,pr.comment2
,pr.comment3
,pr.comment4
,pr.comment5
,pr.comment6
,pr.comment7
,pr.comment8
,pr.comment9
,pr.comment10
,pr.comment11
,pr.comment12
,pr.comment13
,pr.comment14
,pr.comment15
,pr.comment16
,pr.comment17
,pr.comment18
,pr.comment19
,pr.comment20
,pr.comment21
,pr.comment22
,pr.comment23
,pr.comment24
,pr.comment25
,pr.update_date
,pr.main_list_comment
,pr.main_image
,pr.main_list_image
,pr.product_flag
,pr.deliv_date_id
,pr.sale_limit
,pr.point_rate
,pr.sale_unlimited
,pr.create_date
,pr.deliv_fee
,pc.rank
,cc.rank AS category_rank
,cc.category_id
FROM
(((SELECT
product_id as product_id_sub
,MIN(product_code) AS product_code_min
,MAX(product_code) AS product_code_max
,MIN(price01) AS price01_min
,MAX(price01) AS price01_max
,MIN(price02) AS price02_min
,MAX(price02) AS price02_max
,MIN(stock) AS stock_min
,MAX(stock) AS stock_max
,MIN(stock_unlimited) AS stock_unlimited_min
,MAX(stock_unlimited) AS stock_unlimited_max
FROM dtb_products_class GROUP BY product_id
) AS pl
LEFT JOIN dtb_products AS pr ON pl.product_id_sub = pr.product_id) LEFT JOIN dtb_product_categories AS pc ON pr.product_id = pc.product_id) LEFT JOIN dtb_category AS cc ON pc.category_id = cc.category_id) AS allcls WHERE del_flg = 0 AND status = 1 AND category_id IN ( 416 ) [nativecode=1064 ** You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AS pl
LEFT JOIN dtb_products AS pr ON pl.product_id_sub = p' at line 70]


----------------
EC-CUBEバージョン 2.1.2
PHPバージョン PHP 4.3.9
DBバージョン MySQL 4.1.20

フラット表示 前のトピック | 次のトピック


題名 投稿者 日時
   MySQL での一覧商品表示の速度向上について hakaselab 2009/3/18 16:34
     Re: MySQL での一覧商品表示の速度向上について lucky7 2009/3/25 21:02
       Re: MySQL での一覧商品表示の速度向上について seasoft 2009/3/25 21:07
         Re: MySQL での一覧商品表示の速度向上について lucky7 2009/3/25 21:25
           Re: MySQL での一覧商品表示の速度向上について lucky7 2009/3/25 22:04
             Re: MySQL での一覧商品表示の速度向上について seasoft 2009/3/25 22:09
               Re: MySQL での一覧商品表示の速度向上について seasoft 2009/3/25 22:12
                 Re: MySQL での一覧商品表示の速度向上について seasoft 2009/3/25 22:15
                   Re: MySQL での一覧商品表示の速度向上について lucky7 2009/3/25 22:22
                     Re: MySQL での一覧商品表示の速度向上について seasoft 2009/3/25 22:51
                       Re: MySQL での一覧商品表示の速度向上について hakaselab 2009/3/25 23:01
                       » Re: MySQL での一覧商品表示の速度向上について lucky7 2009/3/26 0:31
                           Re: MySQL での一覧商品表示の速度向上について seasoft 2009/3/26 0:57
                             Re: MySQL での一覧商品表示の速度向上について lucky7 2009/3/26 1:22
                               Re: MySQL での一覧商品表示の速度向上について seasoft 2009/3/26 1:27
                           Re: MySQL での一覧商品表示の速度向上について hakaselab 2009/3/26 14:23
                             Re: MySQL での一覧商品表示の速度向上について seasoft 2009/3/26 14:52
         Re: MySQL での一覧商品表示の速度向上について seasoft 2009/3/26 2:04
           Re: MySQL での一覧商品表示の速度向上について miruku 2009/3/26 11:21
             Re: MySQL での一覧商品表示の速度向上について seasoft 2009/3/26 13:02
           Re: MySQL での一覧商品表示の速度向上について seasoft 2009/3/26 15:10
             Re: MySQL での一覧商品表示の速度向上について lucky7 2009/3/26 20:00
               Re: MySQL での一覧商品表示の速度向上について miruku 2009/3/27 18:16
                 Re: MySQL での一覧商品表示の速度向上について seasoft 2009/3/27 19:08
                   Re: MySQL での一覧商品表示の速度向上について hakaselab 2009/3/27 19:29
                 Re: MySQL での一覧商品表示の速度向上について hakaselab 2009/3/27 19:19
                 Re: MySQL での一覧商品表示の速度向上について lucky7 2009/3/28 1:01

 



ログイン


EC-CUBE公式 Amazon Payプラグイン

統計情報

総メンバー数は88,995名です
総投稿数は110,019件です

投稿数ランキング

1
seasoft
7367
2
468
3217
3
AMUAMU
2712
4
nanasess
2314
5
umebius
2085
6
yuh
1819
7
h_tanaka
1646
8
red
1570
9
mcontact
1296
10
tsuji
958
11
fukap
907
12
shutta
835
13
tao_s
799
14 ramrun 789
15 karin 689
16 sumida 641
17
homan
633
18 DELIGHT 572
19
patapata
502
20
flealog
485


ネットショップの壺

EC-CUBEインテグレートパートナー

Copyright© EC-CUBE CO.,LTD. All Rights Reserved.