Re: Query requires iterating over all vertices


Boxuan Li
 

Hi, it means your query is not leveraging your indexes. Can you provide the query and also the output of `mgmt.printIndexes()` (or how you created the indices)?

On Jul 22, 2021, at 11:03 PM, Laura Morales <lauretas@...> wrote:

I was able to create a "Composite Index", but I cannot seem to be able to create a "Mixed Index" with berkeleyjs and lucene.
What I've done:

- I've modified the ".properties" file
index.search.backend=lucene
index.search.directory=/data/searchindex
- I've created the index by following the instructions at https://docs.janusgraph.org/index-management/index-performance/#mixed-index I've tried with both one and two properties in the index

When I make the query, I always get the same warning "WARN org.janusgraph.graphdb.transaction.StandardJanusGraphTx - Query requires iterating over all vertices [()]. For better performance, use indexes"
I don't understand where the problem is. When I create the index following the documentation, everything seems to work fine, I don't get any errors.

How can I debug this?




Join janusgraph-users@lists.lfaidata.foundation to automatically receive all group messages.