O'Reilly logo

Building Web Applications with Python and Neo4j by Sumit Gupta

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Batch imports

Py2neo.batch provides the Batch API, which is a wrapper around the Neo4j REST Batch API (http://neo4j.com/docs/stable/rest-api-batch-ops.html).

The Batch API in py2neo or in Neo4j is designed to wrap multiple and varied types of read, write, update, and delete REST requests in a single transaction. Though it seems to be a good choice to use batch operations, it is not recommended for new use cases that are built for Neo4j 2.0+. For example, schemas, and labels are not supported by the Batch API.

Neo4j 2.0 introduces a new Cypher HTTP Transactional endpoint that executes multiple Cypher statements into a single request and that too in a transaction (http://neo4j.com/docs/milestone/rest-api-transactional.html). It is strongly recommended ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required