Skip to Content.
Sympa Menu

devel - Re: [sympa-dev] member count

Subject: Developers of Sympa

List archive

Chronological Thread  
  • From: Thomas Berry <address@concealed>
  • To: David Verdin <address@concealed>
  • Cc: "address@concealed" <address@concealed>
  • Subject: Re: [sympa-dev] member count
  • Date: Fri, 12 Mar 2010 06:57:23 -0800

It's not causing any operational problems; the member count is used just for informational purposes. We have a few web interfaces and command line tools that use the count to provide information about the mailing list being used. I noticed this behavior occur with other lists, but since it wasn't a high priority issue, never tried to find out how it could be fixed.

As for this list, it is used 4-10 times per day.
When nocache was used, an undef value was returned. I have a script that isolates the sympa code that dumps the members of a list and it has always returned the full list of members even though the member count returns 0 (or undef with nocache).

We actively check for database outages and have seen no indication of database connectivity issues in the Sympa logs or other monitor sources (maintained outside the list server).

Thomas

David Verdin wrote:
No idea. What do you mean by "often"? Is it after a period during which the list remained inactive?
I never observed such a behaviour. Maybe I don't manage large enough lists.

Using the "nocache" is supposed to give you the subscribers count. Does it return a value or undef? If it is undef, it could mean that you have tyroubles connectig to the database.

Regards,

David

Le 09/03/2010 19:09, Thomas Berry a écrit :
We synchronize the list members--those that aren't self-subscribed--of our lists with LDAP. Often, when checking the member total for a list, the count returns 0. Although, when a list of member email addresses is retrieved, the list has over 7000 members.

The count can be restored if a refresh of the list (with its source) is initiated. But, for lists as large as this, it is not practical to do this every time the count is zero.


I've been using the List.pm method get_total.

my $list = List->new($listname, $robot);
my $total = $list->get_total();
printf "$listname has $total members\n";

I've also tried using the "nocache" option, but that returns no value.

I looked at the Sympa 6.0 code, and the method hasn't changed.

Any ideas?





Archive powered by MHonArc 2.6.19+.

Top of Page