mailwatch / MailWatch

MailWatch for MailScanner is a web-based front-end to MailScanner
http://mailwatch.org/
GNU General Public License v2.0
115 stars 66 forks source link

improve performance of mailwatch_milter_relay.php #1266

Closed dneuhaeuser closed 1 year ago

dneuhaeuser commented 1 year ago

the code part which executes the SQL commands does not need to run after each line from the logfile is processed. instead it is sufficient to run SQL statements once after logfile is analyzed and relevant data was read into $idqueue array. so I moved this part into a separate function. this is a quite simple but very performance-effective change.

shawniverson commented 1 year ago

Very nice! I'll give this a test drive as well

shawniverson commented 1 year ago

This is good.

dneuhaeuser commented 1 year ago

can we merge this one or do you want any further changes?

endelwar commented 1 year ago

Thanks again!