https://bugzilla.wikimedia.org/show_bug.cgi?id=41268

--- Comment #4 from Markus Krötzsch <[email protected]> 2012-10-22 
20:39:42 UTC ---
(In reply to comment #3)
> As an afterthought: I wonder whether SMWResultPrinter::$maxRecursionDepth 
> could
> default to a high value in the future, provided  $smwgQMaxLimit = 10000 would
> be enforced across the sum of all nested template queries?

There are several problems that prevent this from working, the main one being
that we cannot count the total number of results. In fact, even a few results
can be shown many times with recursive embedding. The number of query results
is not added up or multiplied by higher depths, it is exponentiated. If a query
has 10 results and recursively embeds it's own page for rendering, you get 100
results at level 2, 1000 at level three, and so on. And the query could easily
have 100 results instead of 10 to start with. This cannot be limited at the
storage level because the query is only answered once (with 10 results); the
rest is rendering and, more specifically, recursive template transclusion in
MW. The problem are not (just) the 10000 result rows, but the 1000 template
inclusions that need to processed to get them.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to