EPrints Technical Mailing List Archive
Message: #02214
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] Re: Edit Subject : very slow but...
- To: eprints-tech@ecs.soton.ac.uk
- Subject: [EP-tech] Re: Edit Subject : very slow but...
- From: Yuri <yurj@alfa.it>
- Date: Mon, 23 Sep 2013 15:54:48 +0200
Il 23/09/2013 15:05, Jean-Marie Le Bechec ha scritto:
hi, The creation of new subjects is becoming more and more longer : 10 minutes to open certain pages of the tree (administration side). I looked a little closer and I just commented the following line: $ t-> appendChild ($ session-> make_text ($ _-> count_eprints ($ archive_ds))); (line 481 - Eprints 3.2.4) in the "/ perl_lib / EPrints / Plugin / Screen / Subject / Edit.pm" file. Miracle! the page now opens in 20 seconds. If it helps someone ...
I think the problem is in the count_eprints routine, which teoretically should be fast. But because it is built on a generic search, it takes ages to build a lot of sql query, on for every item in the part of tree you're looking at, then merging them.
Jean-Marie
- References:
- [EP-tech] Edit Subject : very slow but...
- From: Jean-Marie Le Bechec <Jean-Marie.LeBechec@inp-toulouse.fr>
- [EP-tech] Edit Subject : very slow but...
- Prev by Date: [EP-tech] render abstracts, when document-fileds are changed
- Next by Date: [EP-tech] Re: Not showing some fields in views from created item type.
- Previous by thread: [EP-tech] Edit Subject : very slow but...
- Next by thread: [EP-tech] render abstracts, when document-fileds are changed
- Index(es):