Page MenuHomePhabricator

smw_specialprops.property_id should be indexed
Closed, ResolvedPublic

Description

Author: info

Description:
All queries of the smw_specialprops table look for a particular kind of property
e.g. SMW_SP_HAS_TYPE, yet property_id is not indexed.


Version: unspecified
Severity: normal
URL: http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/SemanticMediaWiki/specials/SMWAdmin/SMW_SpecialSMWAdmin.php?revision=HEAD&view=markup

Details

Reference
bz7916

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:29 PM
bzimport set Reference to bz7916.

True. Since the number of special properties is always limited, one might also
have seperate tables for different types (or collections) of properties right
away. Since both this and the indexing is a change to the DB scheme, I would
prefer to wait with this optimisation until after the next release (which will
not change the DB).

A suitable default index was added in SMW0.7alpha.