2

同じトラバーサルでセカンダリインデックスと検索インデックスの両方を使用するグレムリントラバーサルがハングしているようです。何故ですか?DSEグラフ:セカンダリインデックスと検索インデックスの両方を使用するトラバーサルは、なぜそれらがハングしますか?

DSEグラフdocs on indexingから理解していただいたように、カーディナリティの低いプロパティに最も適したインデックスは2次インデックスです。私は可能な型が限られているような '型'プロパティを持つモデルを持っています。だから私はインデックスが必要なときにセカンダリインデックスを使用しました。

しかし、次の例によって示されるように、それは、同じトラバーサルの両方の二次および検索インデックスを使用することはできませんようだ:最後のトラバースで

gremlin> system.graph('example').create() 
==>null 
gremlin> :remote config alias g example.g 
==>g=example.g 
gremlin> schema.vertexLabel('item').create() 
==>null 
gremlin> schema.propertyKey('type').Text().single().create() 
==>null 
gremlin> schema.propertyKey('description').Text().single().create() 
==>null 
gremlin> schema.vertexLabel('item').properties('type').add() 
==>null 
gremlin> schema.vertexLabel('item').properties('description').add() 
==>null 
gremlin> schema.vertexLabel('item').index('byType').secondary().by('type').add() 
==>null 
gremlin> schema.vertexLabel('item').index('search').search().by('description').add() 
==>null 
gremlin> graph.addVertex(label, 'item', 'type', 'A', 'description', 'first item is orange') 
==>v[{~label=item, community_id=96406144, member_id=0}] 
gremlin> graph.addVertex(label, 'item', 'type', 'A', 'description', 'second item is blue') 
==>v[{~label=item, community_id=2076720128, member_id=0}] 
gremlin> graph.addVertex(label, 'item', 'type', 'B', 'description', 'third item is green') 
==>v[{~label=item, community_id=51027072, member_id=0}] 
gremlin> g.V().hasLabel('item').has('type', 'A') 
==>v[{~label=item, community_id=2076720128, member_id=0}] 
==>v[{~label=item, community_id=96406144, member_id=0}] 
gremlin> g.V().hasLabel('item').has('description', Search.token('blue')) 
==>v[{~label=item, community_id=2076720128, member_id=0}] 
gremlin> g.V().hasLabel('item').has('type', 'A').has('description', Search.token('blue')) 

、サーバーは/var/log/cassandra/system.logで次のステートメントをログに記録します:

WARN [gremlin-server-worker-1] 2016-09-15 14:26:49,759 GremlinExecutor.java:267 - Timing out script - g.V().hasLabel('item').has('type', 'A').has('description', Search.token('blue')) - in thread [gremlin-server-worker-1] 

コンソールが完全にフリーズし、SIGTERMにも応答しません。

+1

私たちはこれを私たちの側で探しています、私はあなたの方法で電子メールを送った。 – peytoncas

答えて

0

これはDSE v5.0.3で解決されています。