Hi there,
I'm doing a counter script (for visitor-stats) and I save all info like browser-name, version, etc. in a table called 'stats'. The table has a column named 'browsername' which contains the browser names (duh!). I want to make an overview with the most accessed browsers. I could make a SQL command which shows me the different browser names and the number of times they exist. I wrote the following:
SELECT browsername,count(*) FROM stats GROUP BY browsername
You might say: "What's your problem?". Well, actually there is no problem, but the function is slow (I have a table that grows with an amount of 10.000 records per day, so I have 30.000 records in 3 days and it took me 25 secs to execute the SQL query). Does anyone have a better way to do this?
Greetz,
Vincent Driessen
Venlo, The Netherlands