Comments (4)
Thanks for reporting, we will look into it.
from neo4j.
There exists a support case in parallel to this issue.
Short description of what is happening:
The query engine optimiser uses indexes and constraints for executing the query. In your scenario, these are added and removed while the optimiser runs and therefore, the optimiser needs to try to run again. It does that 20 times and after that it gives up with the error message that you see.
Without having looked into the details of your setup, I would recommend that if you need queries to be stably planned, to not on the same instance add and remove indexes and/or constraints.
I am sorry for this very high-level answer, I would hope that your support engineer can give you more guidance.
The support case has been closed on our side. I will therefore close this issue. Please reach out to support if you need more help regarding this issue.
from neo4j.
Thanks for the reply @arnefischereit.
In our project, we call CREATE INDEX IF NOT EXISTS ...
before we write a given node type to the graph.
We only see this in our CI integration tests and never in production. These integration tests run on a neo4j docker container that is freshly spun up every time we push code to our Github repo. Since the integration tests write very small amounts of data, we could be calling CREATE INDEX..
much more frequently than in production where we would be writing signifcantly more data and therefore taking more time in between CREATE INDEX
calls.
Could this be causing the behavior you're referring to where the query engine adds constraints frequently?
from neo4j.
Hi @achantavy,
That sounds right yes. I see 418 indexes in indexes.cypher, it may very well explain why the planner can't finalise its plan successfully.
Waiting a little bit longer for the indexes to be ready before executing your first query against the DB should do the trick in this case.
from neo4j.
Related Issues (20)
- How to sync delete operation using Neo4j Kafka Connector? HOT 3
- Formal request for Neo4j 5.20.0 community edition source code under GPLv3 HOT 2
- Issue for ‘Feasibility of Scene-Specific Visualisation’ HOT 1
- Malformed query plan on specific node match HOT 2
- Incorrect warning - cartesian product HOT 2
- 执行mvn test 失败 HOT 3
- Unknown error thrown when executing queries in Neo4j 5.20 HOT 1
- Error trying to create embeddings on graph entities - 'vectorDimension' must be between 1 and 0 inclusively HOT 3
- Can not visit 7474/browser/ with Chrome,Help ~ HOT 8
- timeout error in neo4j HOT 2
- Execution Error in Neo4j 5.20 HOT 2
- Describe interactions on cheat sheet
- UnknownError about SlotWithKeyAndAliases... HOT 1
- Getting different result in top nodes with db.index.vector.queryNodes HOT 2
- Introduce methods for specific Entity properties HOT 3
- Critical Error - Illegal addition ID state for range on GBPTree Merge HOT 19
- apoc.load.csv does not close the file on consumption end HOT 1
- Could you not change API HOT 1
- Key Not Found: VariableSlotKey with COUNT after an alias HOT 4
- CPU Overload on Cypher Query Post-Update to Neo4j 5.20 HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from neo4j.