[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[EP-tech] Re: "max_items" limit
It has been added to the default 'cfg.d/views.pl':
https://github.com/eprints/eprints/commit/dce1d9c2eca1dcdd89f1906388ba0e45825092ff
- but you're right- this should get a mention in the docs!
Cheers,
John
-----Original Message-----
From: eprints-tech-bounces at ecs.soton.ac.uk [mailto:eprints-tech-bounces at ecs.soton.ac.uk] On Behalf Of Tomasz Neugebauer
Sent: 27 August 2015 14:41
To: eprints-tech at ecs.soton.ac.uk
Subject: [EP-tech] Re: "max_items" limit
Thanks, Gilles. We should try to add this option to the views documentation
http://wiki.eprints.org/w/Views.pl
Tomasz
________________________________________
From: eprints-tech-bounces at ecs.soton.ac.uk [eprints-tech-bounces at ecs.soton.ac.uk] on behalf of Gilles Fourni? [gilles.fournie at cirad.fr]
Sent: Thursday, August 27, 2015 2:06 AM
To: eprints-tech at ecs.soton.ac.uk
Subject: [EP-tech] Re: "max_items" limit
Hi,
You can also change max_items in your cfg.d/views.pl :
{
id => 'year',
citation => 'view',
menus => [
{
fields => [ 'date;res=year' ],
reverse_order => 1,
allow_null => 1,
}
],
hideup => 1,
*max_items => 3000*,
...
Regards,
GF
Le 26/08/2015 19:08, Tomasz Neugebauer a ?crit :
> I thought I would share something that we stumbled on recently: there is a max_items limit set somewhere EPrints (I'm not sure where?) that will result in the following error message for browse views that exceed it:
>
> "The number of items (2001) for this view has exceeded system limits (2000). The system administrator either needs to increase "max_items" or apply additional filters to this view."
>
> Google search of this error message reveals that are a few EPrints repositories that stumble on this limit in their browse views.
>
> For us, it was the browse by doctype > theses, as we have more than 2000 theses. We solved this issue by further sub-dividing by year the browse view that was attempting to display more than max_items:
>
> id=> "doctype",
> allow_null => 1,
> hideempty => 1,
> menus=>[
> {
> fields=>["type"],
> allow_null => 1,
> hideempty => 1,
> },
> {
> fields => [ "date;res=year" ],
> reverse_order => 1,
> allow_null => 1,
> hideempty => 1,
> new_column_at => [10,10],
> }
> ],
> order=>"-date"
>
>
> Tomasz
>
>
>
> *** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
> *** Archive: http://www.eprints.org/tech.php/
> *** EPrints community wiki: http://wiki.eprints.org/
> *** EPrints developers Forum: http://forum.eprints.org/
>
*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/
*** EPrints developers Forum: http://forum.eprints.org/
*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/
*** EPrints developers Forum: http://forum.eprints.org/