The following issue has been SUBMITTED. ====================================================================== http://dbmail.org/mantis/view.php?id=823 ====================================================================== Reported By: waza123 Assigned To: ====================================================================== Project: DBMail Issue ID: 823 Category: IMAP daemon Reproducibility: always Severity: minor Priority: normal Status: new target: ====================================================================== Date Submitted: 22-Dec-09 00:21 CET Last Modified: 22-Dec-09 00:21 CET ====================================================================== Summary: Slow query Description: Why imap_headerinfo() php function is so slow ?
MySQL slow query logs: # Time: 091222 1:18:10 # u...@host: dbmail[dbmail] @ localhost [] # Query_time: 28 Lock_time: 0 Rows_sent: 0 Rows_examined: 5581190 SELECT m.message_idnr, n.headername, v.headervalue FROM dbmail_header h JOIN dbmail_messages m ON h.physmessage_id=m.physmessage_id JOIN dbmail_headername n ON h.headername_id=n.id JOIN dbmail_headervalue v ON h.headervalue_id=v.id WHERE m.mailbox_idnr = 21 AND m.message_idnr BETWEEN 755013 AND 779875 AND lower(n.headername) IN ('date','to','cc','from','subject','x-priority','importance','priority','content-type'); See, query time: 28 seconds.. wtf ? thanks. ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 22-Dec-09 00:21 waza123 New Issue ====================================================================== _______________________________________________ Dbmail-dev mailing list Dbmail-dev@dbmail.org http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail-dev