Last modified: 2011-06-25 11:36:40 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T29687, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 27687 - Special:Ask gives out-of-memory error if there are too many properties
Special:Ask gives out-of-memory error if there are too many properties
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
unspecified
All All
: Normal major (vote)
: ---
Assigned To: devayon
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-02-24 18:08 UTC by Tim Quievryn
Modified: 2011-06-25 11:36 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Tim Quievryn 2011-02-24 18:08:16 UTC
The Third Turn (thethirdturn.com) has millions of properties.

The autocomplete capabilities of Special:Ask tries to get all of them, blowing out the memory of my machine:

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 86 bytes) in /path/w/extensions/SemanticMediaWiki/includes/datavalues/SMW_DV_Property.php on line 97

While I know my site is an extreme example of SMW (I do need to go through and start streamlining my properties with Semantic Internal Objects), it would be nice to have some sort of sanity check that kills autocompletion after 5,000/whatever # properties.
Comment 1 devayon 2011-04-20 05:16:11 UTC
Something like 

global $smwgQMaxLimit;

$foo=smwfGetStore()->getStatistics();

if($foo['DECLPROPS']<$smwgQMaxLimit){
//body of the javascript autocomplete code
}

can be added at line 216 of SMW_SpecialAsk.php

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links