Skip to Content.
Sympa Menu

devel - Re: [sympa-dev] database access could be MUCH speedier

Subject: Developers of Sympa

List archive

Chronological Thread  
  • From: Olivier Salaun <address@concealed>
  • To: address@concealed
  • Subject: Re: [sympa-dev] database access could be MUCH speedier
  • Date: Wed, 21 Feb 2001 14:53:45 +0100

Hi,

Fil wrote:

> after checking why my wwsympa was so sloooooooooww (like minutes before
> giving me a do_search(address@concealed) I went into the code and discovered the
> sad truth ;)
>
> * wwsympa
> 1) asks the SQL database to give it a full list of subscriber
> 2) on each subscriber, checks to see if it matches the regexp
> 3) prints these records that match
>
> So what's the database useful for? (In French: "A quoi ça sert que mysql se
> décarcasse?")
>
> wwsympa should
> 1) ask the SQL database for THOSE RECORDS THAT MATCH regexp
> 2) process that short list

You're right : List::get_first_user() should take another 'filter'
argument.

> The same is true when wwsympa wants to print out only the subscribers 100 to
> 125 : it should not request all then select a short list, but it should
> issue a LIMIT 100,125 command in its SQL request.

NO, LIMIT is used when doing a REVIEW.
Did you check your MySQL log ?

--
Olivier Salaün
Comité Réseaux des Universités



Archive powered by MHonArc 2.6.19+.

Top of Page