kenwoon commented on issue #831:
URL: https://github.com/apache/age/issues/831#issuecomment-1526233210

   The main difference between execCypher() and cypher() in age.py is in how 
they execute the Cypher query and handle the result.
   
   The cypher() function creates a Cypher query object that can be used to 
build a Cypher query string. It takes a connection object and a graph name as 
arguments and sends the Cypher query to the Neo4j server. It returns a cursor 
object that allows for iterating over the results of the query row-by-row. This 
method is useful for processing large datasets and avoiding loading them all 
into memory at once.
   
   On the other hand, the execCypher() function takes a Cypher query string as 
input and executes it against an AGE graph database. It creates a cursor 
internally and returns the result of the query as a Python object. This 
function is more robust in terms of error handling and allows for efficient 
retrieval of query results while reducing memory consumption, especially when 
the result set is large.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@age.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to