I turned on slow queries logs in mysql and re-ran a report "Top senders by 
quantity".  The only query I'm seeing  is:
# Time: 121120 15:03:54
# User@Host: baruwa[baruwa] @ localhost []
# Query_time: 1.368505  Lock_time: 0.000133 Rows_sent: 1  Rows_examined: 8918
SET timestamp=1353445434;
SELECT COUNT(*) AS mail, SUM(CASE WHEN virusinfected=0 AND
        nameinfected=0 AND otherinfected=0 AND spam=0 AND
        highspam=0 THEN 1 ELSE 0 END) AS clean_mail, SUM(CASE WHEN
         virusinfected>0 THEN 1 ELSE 0 END) AS virii, SUM(CASE WHEN
          nameinfected>0 AND virusinfected=0 AND otherinfected=0
        AND spam=0 AND highspam=0 THEN 1 ELSE 0 END) AS infected,
        SUM(CASE WHEN otherinfected>0 OR nameinfected>0 AND
        virusinfected=0 AND spam=0 AND highspam=0 THEN 1 ELSE 0 END)
        AS otherinfected, SUM(CASE WHEN spam>0 AND virusinfected=0
        AND nameinfected=0 AND otherinfected=0 AND highspam=0 THEN
        1 ELSE 0 END) AS spam_mail, SUM(CASE WHEN highspam>0 AND
        virusinfected=0 AND nameinfected=0 AND otherinfected=0
        THEN 1 ELSE 0 END) AS high_spam, SUM(size) AS size FROM
        messages WHERE date = '2012-11-20';

which I believe is the interface refreshing the top 50(?) on the first page.

The browser interface that has baruwa loaded just has the cursor spinning and 
has been for at least 20 minutes now.  I'll let it go longer but the way I 
remember it, even if I let it go for a day it will still be running.

I'm not sure that mysql is the issue...

Also, I should mention that the interface seems rather slow moving between menu 
options.

As it sits right now, I have 1160854 total messages. 

  Any ideas on how I can get this to work?

 Thanks!
   

-----Original Message-----
From: [email protected] [mailto:[email protected]] 
On Behalf Of Johnson, SE
Sent: Thursday, November 15, 2012 11:51 AM
To: 'Baruwa users list'
Subject: Re: [Baruwa] reports and large deployments

No errors, the page just sits and spins....

What type of tuning will I need to do in mysql?

-----Original Message-----
From: [email protected] [mailto:[email protected]] 
On Behalf Of Andrew Colin Kissa
Sent: Tuesday, November 13, 2012 12:56 PM
To: Baruwa users list
Subject: Re: [Baruwa] reports and large deployments


On 13 Nov 2012, at 8:28 PM, Johnson, SE wrote:

> I'm not really sure how large our site compared to other users of baruwa is 
> but we get about 10-15,000 emails / day.  Right now I have about 1,215,302 
> messages in baruwa.
>  
> I'm not sure if this is what's causing the report issues we have or if 
> there's another issue going on.  Should I be able to pull reports with 
> that many emails in baruwa?  I'd like to be able to pull some spam 
> statistics for the management...

Yes you should be able to, a DB that large will require some mysql tuning to 
get good performance. Are you getting any errors ?

- Andrew

--
www.baruwa.org




_______________________________________________
Keep Baruwa FREE - http://pledgie.com/campaigns/12056

--
This message has been scanned for viruses and dangerous content by MailScanner, 
and is believed to be clean.


_______________________________________________
Keep Baruwa FREE - http://pledgie.com/campaigns/12056

--
This message has been scanned for viruses and dangerous content by MailScanner, 
and is believed to be clean.


_______________________________________________
Keep Baruwa FREE - http://pledgie.com/campaigns/12056

Reply via email to