Neo4j: Can Cypher query use index automatic in where clause to filter the result?
-
I found it too slow when using where clause, so suspect it does not use lucene index ,why, I know the start clause can use index ,why where can't?
-
Answer:
No, not at the moment, though that's been announced as being in the plans. I frequently find that if I feel I need to use indexes as anything other than a place to start pattern matching, though, what I really need to do is rethink my query or graph structure. There's also a possibility your scenario can be handled using additional start clauses, which can each use an index lookup. For instance, if your query returns a a number of nodes that you then narrow down to a smaller number, which you then want to connect to some other nodes: START possible=node:node_auto_index({possibles_query}) WHERE possible-[:won]->() WITH possible START prize=node:node_auto_index({other_query}) CREATE possible-[:owns]->prize Note: that will connect every possible (remaining after the WHERE clause is applied) to every prize.
Russell Duhon at Quora Visit the source
Related Q & A:
- How can I query Parse data by creation date with Swift?Best solution by Stack Overflow
- How to write SQL statement with dynamic where clause?Best solution by Stack Overflow
- How to query with doctrine dql the where in clause?Best solution by Stack Overflow
- Can you now use "Outlook Express" to access Yahoo mail?Best solution by Yahoo! Answers
- Why can't I use my alternative Email address?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.