Bluehost.com Web Hosting $6.95

Re: Postfix + MySql - reducing queries?

This is a discussion on Re: Postfix + MySql - reducing queries? within the mailing.postfix.users forums, part of the Mail Servers and Related category; Nikolas Hagelstein schrub: > Hi, > > i am running a mysql(4.xx)/postfix(2.0.16)/amvis combination. &...


Go Back   Usenet Forums > Mail Servers and Related > mailing.postfix.users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-04-2004
Bernd Matthes
 
Posts: n/a
Default Re: Postfix + MySql - reducing queries?


Nikolas Hagelstein schrub:
> Hi,
>
> i am running a mysql(4.xx)/postfix(2.0.16)/amvis combination.
> The setup is almost identical to the one described
> in "FILTER_README - Squeezing out more performance".
>
> i am surprised about that much (mostly redundant ones) sqlquerys
> being necessary. Did i missed something? Any optimisation hints?


Hi Niko!

Use proxymap.

In example, if You use
alias_maps =3D mysql:$config_directory/aliases.cf
use:
alias_maps =3D proxy:mysql:$config_directory/aliases.cf

Check master.cf for the line:
proxymap unix - - n - - proxymap

Then add to main.cf:
proxy_read_map =3D proxy:mysql:$config_directory/aliases.cf

or if You are not sure:

postconf | grep proxy_read_map >> main.cf

and add all Your MySQL configs to this line.
You can it format in 'multiple line parameter' of course.
If You don't get all required maps in this parameter
take a look in the log. The affected process will stop and
the proxymap will complain about a unknown map-

This should reduce the number of queries remarkably.
Compare the number of running 'mysqld' before and after
the use of proxymap with pstree or so.

I hope it helps.

--=20
with kind regards
# make love
make: *** No rule to make target `love'. Stop.
Homefucking is killing prostitution.
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 08:19 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0