mysql - BigQuery Table too large for JOIN & Resources exceeded during query execution -


i've tried 2 different ways query, receive table large join first 1 , resources exceeded during query execution in second one...

these queries:

select count(distinct(s_pageview_id)) total impressions.tbl_impressions_201405 i_browser in (1) , fk_i_id_tbl_vertical in (1) , i_section in (1) , s_ads_list != '' , b_is_human = true , date(dt_date) = '2014-05-28' , s_pageview_id not in (   select s_pageview_id   impressions.tbl_impressions_201405   i_section in (26,27,83,96)   , i_browser in (1)   , fk_i_id_tbl_vertical in (1)   , date(dt_date) = '2014-05-28'   , s_ads_list != ''   , b_is_human = true ) 

2nd query:

select count(*) total impressions.tbl_impressions_201405 impressions_1 left outer join each impressions.tbl_impressions_201405 impressions_2 on impressions_1.s_pageview_id = impressions_2.s_pageview_id impressions_2.i_browser in (1) , impressions_2.fk_i_id_tbl_vertical in (1) , impressions_2.i_section in (1) , impressions_2.b_is_human = true , date(impressions_2.dt_date) = '2014-05-28' , impressions_1.i_section in (26,27,83,96) 

do know other way try it?!

thank much...

your question severely short on metadata. how big tables, join in first 1 etc. but:

1) try join each. can bit more specific joins, using this visualisation guide.
2) try saving table , allowing large results. enter image description here


Comments

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -