[Moin-user] Re: Searching for backlinks taking very long...

Srinath Avadhanula srinathava at gmail.com
Sat Mar 11 17:24:13 EST 2006


Hi,

Yet another followup. I feel stupid carrying out such an enthusiastic
conversation with myself.

On 3/10/06, Srinath Avadhanula <srinathava at gmail.com> wrote:
>
> However, a search for 'link:SomeTopic' still takes 15 seconds. It
> looks like I have struck a bug :(
>
On exploring the source of what took so long, it turns out that the huge
percentage of time was in acquiring and releasing the read lock when
reading the pagelinks files. If I change the ``locking`` variable at the
beginning of caching.py to 0, then searching for 'link:SomeTopic' drops
from 10 seconds to 0.2 seconds (an improvement of 50X!)

Since I am running a personal MoinMoin which no one else sees/edits,
I guess this should be safe for me. However, I am wondering if there
might be a better way to do read locking. It seems to be an excessively
costly measure to take.

My first question still remains ::

    Is there a way to make the Rename action also automatically search
    through all pages for links to the original name and change those
    too?

Thank you,
Regards,
Srinath




More information about the Moin-user mailing list