Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Is there a performance difference between using Cypher and java API in Galaxybase?

I am new to Galaxybase and use Galaxybase with a relatively small amount of data, and there is no significant difference when using the Cypher and Java APIs.

Is there any actual difference in performance between Cypher and java API?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Yes, there are differences. Cypher queries are supported for the purpose of compatibility with neo4j. The limitations of Cypher syntax itself can lead to inefficient queries in some cases.

For example, its (point)-[edge]-(point) formulation naturally matches the dfs traversal approach, and is not applicable to the bfs traversal approach. Many graph traversal query application scenarios, if you use the dfs way will cause a lot of repeated iterative access, and not very efficient.

We specifically provide the bfsMaster method in the java api interface for bfs traversal queries, the speed can be much higher.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading