I have a table called ad_view and it contains 18.9 million data in this table.
This is ad_vew table ad_vew
ad_view ------- ad_id network_id publisher_id landingpage_id advertiser_id
I use this query to get ad_id and ad_id counter depending on network_id , so in this case network_id is 4 .
select ad_id,count(ad_id) as strength from ad_view where network_id = 4 group by ad_id order by strength desc limit 10
This request is forever loading. Do you have an offer to quickly make this request?
I am not a database expert, if I need to redo this table, I would.
Any suggestion would be greatly appreciated, thanks!
source share