From: Ralf K. <ral...@kr...> - 2014-04-30 05:53:22
|
Hi Neill, I've set them in LocalSettings.php. The $smwgQMaxInlineLimit has full effect (setting a higher limit), but $smwgQPrintoutLimit does not help to fix the behavior getting only 100 rows when more than $smwgQMaxInlineLimit are requested. Cheers Ralf On Tuesday 29 April 2014 Neill Mitchell wrote: > Hi Ralph. > > Then this is possibly a regression. It works on a SMW 1.8.5 instance I > have running. > > Where do you have the variables set? In SemanticMediaWiki.settings.php? > > Cheers > Neill. > > On 29/04/14 09:45, Ralf Krüdewagen wrote: > > Hi Neill, > > > > but setting "$smwgQPrintoutLimit = 500 ;" does not help. > > > > It's the same behavior: Just 100 rows when limit is explicitly set to more > > than 500. > > > > Cheers > > Ralf > > > > On Tuesday 29 April 2014 Neill Mitchell wrote: > >> Hi Ralf. > >> > >> You also need to set the following: > >> $smwgQPrintoutLimit = 500; > >> > >> This obviously needs to be added to the documentation somewhere as I > >> think this is the 3rd time in as many months that I've posted this :) > >> > >> Cheers > >> Neill. > >> > >> On 29/04/14 09:07, Ralf Krüdewagen wrote: > >>> Hi SMW experts, > >>> > >>> I am wondering if this is a feature or a bug. > >>> > >>> Background: $smwgQMaxInlineLimit can be used to define the maximal > >>> number > >>> of rows ever printed in a single inline query, see [1],[2]. The default > >>> is 500. > >>> > >>> This is quite important for formats like JSON or CSV in order to get all > >>> results e.g. for exporting data. > >>> > >>> Now my finding: > >>> > >>> When querying JSON or CSV with "limit=500" I get 500 rows. When querying > >>> with "limit=501" or "limit=1000", the result only contains 100 rows. I > >>> would expect to get at least 500 rows (the max). > >>> > >>> In other words: As soon as the query "limit" value exceeds > >>> $smwgQMaxInlineLimit, the limit is reduced to 100, but not to > >>> $smwgQMaxInlineLimit. > >>> > >>> Is this expected or a bug? > >>> > >>> [1] http://semantic-mediawiki.org/wiki/Semantic_Result_Formats#FAQ > >>> [2] http://semantic-mediawiki.org/wiki/Help:$smwgQMaxInlineLimit |