Hi,
I wonder if anyone can tell me if the functions used when I call
SMWQueryProcessor::getResultFromQueryString should release all the memory after
they finished?
I thought I could avoid a memory problem by calling getResultFromQueryString
with different 'offset' values to retrieve smaller chunks of articles. However,
at some point I still run out of memory during the loop, even if I just call the
function and ignore the result.
$maxresults = 500;
$limit = $params['limit']; # is 10
for ($ofs = 0; $ofs < $maxresults ; $ofs += $limit) {
$params['offset'] = $ofs;
$dummy = SMWQueryProcessor::getResultFromQueryString($querystring,
$params, $printouts, SMW_OUTPUT_WIKI);
}
When $ofs reaches 490 I run out of memory (Fatal error: Allowed memory size of
134217728 bytes exhausted).
The test query is '[[MyProp::~*;?;?]][[Category:MainArticle]]' with about 19000
articles matching (as using [[MyProp::?;?;?]] gives the error 'The value of
property "MyProp" was not understood', I have to replace one '?' with '~*').
MediaWiki 1.13.1
PHP 5.2.1
MySQL 6.0.45
SMW 1.5a SVN
Thanks,
Gu
------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
Semediawiki-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel