Help:Temporary tables

From semantic-mediawiki.org
(Redirected from Temporary tables)
Jump to: navigation, search

Temporary tables are used to hold temporary computed results during a query execution and while kept in memory those will be deleted after a query execution has finished.

Example

Below shows an example for when temporary tables (marked with t.) are created and used by a query.

{{#ask: 
 [[Category:City]] OR  [[Located in::Germany]] 
 |format=debug
}}

{{#ask: OR Located in::Germany

|format=debug

}}

Disable temporary tables

You can disable specific query features that rely on temporary tables (necessary when computing intermediary results) by adding the following to "LocalSettings.php":

$smwgQSubcategoryDepth = 0;
$smwgQSubpropertyDepth = 0;
$smwgQFeatures         = SMW_ANY_QUERY & ~SMW_DISJUNCTION_QUERY;
$smwgQConceptFeatures  = SMW_ANY_QUERY & ~SMW_DISJUNCTION_QUERY & ~SMW_CONCEPT_QUERY;


See also