[Mailman-Developers] a patch to scale Cgi/admin.py

Fil fil at rezo.net
Mon Oct 31 02:49:47 CET 2005


> - 1) add a "getMembersMatching(regexp) method  (best, I think, as it can
>      leverage foreign search methods, i.e. MySQL's "SELECT WHERE name LIKE %s")

I have implemented this for the MySQLMemberAdaptor, and it's a fabulous
speed improvement. My question to Barry would be now: do I need to make this
a compulsory method for the MemberAdaptor class (and declare this function
in MemberAdaptor.py), like:

    def getMembersMatching(self, regexp):
        """Get all the members who match regexp"""
        raise NotImplementedError

or is it enough to just "fall back" to the previous algorithm in case this
method doesn't exist (and then I need patch only admin.py and
MySQLMemberAdaptor, which I have done)?

-- Fil



More information about the Mailman-Developers mailing list