semantique.processor.core.QueryProcessor.optimize

semantique.processor.core.QueryProcessor.optimize#

QueryProcessor.optimize()[source]#

Optimize a semantic query.

During query optimization, the query components are scanned and certain properties of the query processor are set. These properties influence some tweaks in how the query processor will behave when processing the query. For example, if the given spatial extent consists of multiple dispersed sub-areas, the query processor might instruct itself to load data separately for each sub-area, instead of loading data for the full extent and then subset it afterwards.

Returns:

QueryProcessor – An updated query processor instance.

Note

In the current version of semantique, the optimization phase only exists as a placeholder, and no properties are updated yet.