Andrew Mashenkov commented on IGNITE-4540:

GridCacheQueryManager.enabled() is false if there is no 
IndexedTypes\QueryEntities set in configuration. 
Just setting it to true (when IndexingSPI is configured) would turn on indexing 
for system caches. 

We need an ability to turn IndexingSPI for certain caches in 
CacheConfiguration. However, IndexingSPI is IgniteConfiguration property and 
can be configured on per node base, not per cache.

It looks like, we need to add either option to disable default indexing or 
option to force enabling IndexingSPI for certain cache.

> Ability to disable default H2 Indexing.
> ---------------------------------------
>                 Key: IGNITE-4540
>                 URL: https://issues.apache.org/jira/browse/IGNITE-4540
>             Project: Ignite
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 1.8
>            Reporter: Andrew Mashenkov
>            Assignee: Andrew Mashenkov
>            Priority: Minor
>             Fix For: 1.9
> It is impossible for now to use IndexingSPI without H2Indexing due to next 
> reasons:
> - H2Indexing always starts if IgniteH2Indexing class found in classpath.
> - if IndexingTypes are set and IndexingSPI is configured, then both 
> IndexingSPI and H2Indexing is used. If IndexingTypes is not set, then both 
> indexers are disabled.
> We need to add an option that force disabling H2IndexingSpi. 
> It look like the only workaround for now is remove ignite-indexing jar from 
> classpath.

This message was sent by Atlassian JIRA

Reply via email to