# Python neo4j driver write transaction

**URL:** <https://community.neo4j.com/t/python-neo4j-driver-write-transaction/22439>\
**Category:** Python\
**Created:** [July 27, 2020, 2:00pm UTC](https://community.neo4j.com/t/python-neo4j-driver-write-transaction/22439 "2020-07-27T14:00:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dan3](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/dan3/32/18280_2.png) [@dan3](https://community.neo4j.com/u/dan3)\
**Post date:** [July 27, 2020, 2:00pm UTC](https://community.neo4j.com/t/python-neo4j-driver-write-transaction/22439/1 "2020-07-27T14:00:47Z")

</div>

Hi All,  
In our application we execute many create nodes and relationships queries(we are working with Neo4j v4 cluster, with 3 core servers).  
So we created a transaction for our session and we are using the run function for each create query like this:  
**self.\_transaction.run(cql\_query)**  
After we added all the nodes and relationships we are using the commit function.  
**self.\_transaction.commit()**  
The transaction.run function takes a lot of time - 0.15 sec for each query (this aggregated to 10 minutes )  
What is the best practice for this kind of scenario ?  
is there a way to make it faster ?

Thanks :)
