Ticket #1547 (new 改善提案) — at Initial Version
SC_Helper_DB#sfCountCategory 抽出条件の重複指定の懸念
| Reported by: | Seasoft | Owned by: | somebody |
|---|---|---|---|
| Priority: | 低 | Milestone: | EC-CUBE2.12.0 |
| Component: | その他 | Version: | 2.11.4 |
| Keywords: | Cc: | ||
| 修正済み: | yes |
Description
1つの SQL 文の構築で、$sql_where_product_ids を2回埋め込んでいる。
実際のところは、結合条件などを分析しないと断定できないが、冗長な記述となっている懸念を感じる。
おそらく、DB のオプティマイザが1度の処理に集約しているとは思うが、結合条件などによっては、2度の処理が走っている懸念もある。
Note: See
TracTickets for help on using
tickets.
