In our Neo4j database, we currently manage around 60 node types and over 200 to 300 relationship variations using a single generic relationship type, -[:RELATES_TO {fieldName: 'relationshipN'}]->
. To optimize performance, we're considering replacing this with specific relationship types, potentially creating 250 to 300 distinct relationship types.
Given that Neo4j supports up to 65,535 relationship types, we're wondering:
- Would using 250+ specific relationship types with millions of data, impact performance during querying?
- In practical real-world applications, what is generally considered a safe or typical number of relationship types before performance becomes a concern?
Your guidance would be appreciated. Thank you!