# Error while loading data in Neo4j (Python Driver)

**URL:** <https://community.neo4j.com/t/error-while-loading-data-in-neo4j-python-driver/7413>\
**Category:** Python\
**Tags:** performance, import\
**Created:** [May 15, 2019, 7:05pm UTC](https://community.neo4j.com/t/error-while-loading-data-in-neo4j-python-driver/7413 "2019-05-15T19:05:03Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![amitshipra](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/amitshipra/32/4780_2.png) [@amitshipra](https://community.neo4j.com/u/amitshipra)\
**Post date:** [May 16, 2019, 2:47pm UTC](https://community.neo4j.com/t/error-while-loading-data-in-neo4j-python-driver/7413/7 "2019-05-16T14:47:46Z")

</div>

I tried to create the Nodes for Instruments/Books and Dependencies separately but its getting 'stuck' when the number of nodes created is large within one transaction.

**Total Instruments** [141154]

Basically, we begin\_transaction, loop in the instruments and fire:

> ```
> tx.run("CREATE (:Instrument {instrId:{instrId}, instrPath:{instrPath}})", instrId=instrId,instrPath=instrPath)
> 
> ```

**it takes 19.697 seconds for loop to execute but when tx.commit() is called - the process just hangs. No log movement at on server side as well.**

**Last Server side logs were** :

> 2019-05-16 14:37:33.729+0000 WARN [o.n.b.r.BoltConnectionReadLimiter] Channel [/0:0:0:0:0:0:0:1:54413]: consumed messages on the worker queue below 100, auto-read is being enabled.  
> 2019-05-16 14:37:34.097+0000 WARN [o.n.b.r.BoltConnectionReadLimiter] Channel [/0:0:0:0:0:0:0:1:54413]: client produced 301 messages on the worker queue, auto-read is being disabled.

---

_[View the full topic](https://community.neo4j.com/t/error-while-loading-data-in-neo4j-python-driver/7413)._
