User Profile

Collapse

Profile Sidebar

Collapse
aps786
aps786
Last Activity: Oct 6 '06, 02:03 PM
Joined: Sep 26 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • aps786
    replied to Optimizing Query
    give your table structure and query that u are firing....
    See more | Go to post

    Leave a comment:


  • aps786
    started a topic count(distinct) query too slow

    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....
    See more | Go to post
No activity results to display
Show More
Working...