Re: number of queries in mysql

This is a discussion on Re: number of queries in mysql within the mailing.postfix.users forums, part of the Mail Servers and Related category; Gustavo A. Baratto wrote: > Greetings all, > > > trying to reduce the number of queries on mysql, after ...


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 06-05-2005
Cami
 
Posts: n/a
Default Re: number of queries in mysql

Gustavo A. Baratto wrote:
> Greetings all,
>
>
> trying to reduce the number of queries on mysql, after reading the docs
> and some other posts, I still have some questions:
>
> 1 - the first query when an e-mail is sent from
> 'server.that.sent.the.msg':
>
> SELECT destination FROM alias WHERE alias='server.that.sent.the.msg'
>
> Why postifx looks for the server that sent out the msg in the virtual
> alias map table? Can this query be avoided at all?


man 5 mysql_table. Postfix allows freeform queries that should
resolve your problems (if i'm wrong, someone mention it).

query = SELECT destination FROM alias WHERE alias='%u@%d'

Cami
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 07:21 PM.


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