On Wed, Dec 10, 2008 at 06:52:29AM -0800, Fat Bear Mail Services wrote:

> My virtual_alias_maps file (hash:/etc/postfix/virtual) is many thousands 
> of lines.

This is tiny.

> Does sorting the virtual file before running postmap improve 
> subsequent lookup performance?  Just curious.

No. Performance for "hash" files does not substantially depend on
the order of lines in the input file. This could arguably matter for
"btree", but the impact would be on the time to build the table, not
lookup performance, and depending on the internals, (naively) sorted
data inserts could be slower, not faster.

If you have gigabytes to terabyes of data to load, the key order could
be an issue for postmap. You are almost certainly going to switch to
SQL (or perhaps LDAP) long before performance issues drive you there.

-- 
        Viktor.

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.

To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:
<mailto:[EMAIL PROTECTED]>

If my response solves your problem, the best way to thank me is to not
send an "it worked, thanks" follow-up. If you must respond, please put
"It worked, thanks" in the "Subject" so I can delete these quickly.

Reply via email to