以下の SQL クエリで問題が発生しています...サーバーの CPU をペグし、最終的に結果を返さずにタイムアウトします。クエリの形式は問題ありませんか?
BD
SELECT dfa_data_dump.date,
campaignname,
placementgroup,
placementstartdate,
placementenddate,
placementgrouptotalbookedunits,
placementgroupid,
sitename,
dfa_data_dump.placementid,
placement,
dfa_data_dump.placementrate,
placement_rates.ratetype,
placementtotalbookedunits,
placementsize,
time_dimension.month,
Sum(impressionsdelivered),
Sum(clicksrecorded),
Sum(totalactivities),
Sum(totalcost)
FROM dfa_data_dump
INNER JOIN time_dimension
ON time_dimension.date = dfa_data_dump.date
INNER JOIN placement_rates
ON placement_rates.placementid = dfa_data_dump.placementid
GROUP BY dfa_data_dump.date,
campaignname,
placementgroup,
placementgrouptotalbookedunits,
placementgroupid,
sitename,
placementid,
placement,
placementrate,
placementtotalbookedunits,
placementsize,
time_dimension.month