User Profile
Collapse
-
give your table structure and query that u are firing.... -
count(distinct) query too slow
Hi,
There is a table where I store ipaddress and user who logged in from that IP. I have a query to findout all ipaddresses, from where diff users had made request.
stat
------------
ip
userid
I wrote query like this
select ip,count(distin ct userid) as count from stat group by ip having count > 1
But this query always timeout or take more than 5 minutes....
No activity results to display
Show More
Leave a comment: