Great Circle Associates Majordomo-Workers
(April 1999)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: Re: mysql db backend (was Re: DB backend to MD?)
From: Leslie Mikesell <les @ Mcs . Net>
Date: Wed, 28 Apr 1999 15:04:37 -0500 (CDT)
To: brian @ SoftHome . net (Brian Grossman)
Cc: tibbs @ math . uh . edu, majordomo-workers @ GreatCircle . COM, sjsobol @ nstc . com
In-reply-to: <19990426053331.4047.qmail@lindy.softhome.net> from "Brian Grossman" at Apr 25, 99 11:33:31 pm

According to Brian Grossman:
> 
> My big reason for wanting to do it in the first place was to avoid locking
> issues.  Locking in mj1 is horrible.  Avoidance of locking issues,
> especially if also addressed in the mj2 daemon's queueing would let mj2
> scale to multiple machines.
> 
> Using berkeley db is essentially the same as idea one.  It should be
> sufficient in all but the most demanding applications.

I would think that besides the locking issue the real win in using
a backend database would come from letting it provide the list
ordered by domain with duplicate users removed so MD can hand
it off to sendmail in reasonable sized chunks that will deliver
messages to the same host in one connection. Something like:
  select distinct user, domain from list order by domain, user;
is almost certainly going to run faster in a relational
database with proper indexes than you can do it in perl. (You
do need to smash the case on domain somehow).  
This could be done with DBI and anyone whose lists are small
enough that the performance doesn't matter could use DBD::CSV
without having to install a database server that runs as a
separate process.  Of course I've been too lazy, err.. busy
to try this myself, although I have manually emulated it a
few times to get a huge list into shape.

  Les Mikesell
    les@mcs.com 


References:
Indexed By Date Previous: Re: mysql db backend (was Re: DB backend to MD?)
From: Brian Grossman <brian@SoftHome.net>
Next: Re: purge_received = no ??
From: Karl Hanzel <karl@comet.ucar.edu>
Indexed By Thread Previous: Re: mysql db backend (was Re: DB backend to MD?)
From: Brian Grossman <brian@SoftHome.net>
Next: Re: DB backend to MD?
From: Peter Galbavy <Peter.Galbavy@knowledge.com>

Google
 
Search Internet Search www.greatcircle.com