Data Input

A set of classes for dealing with batch CRUD operations on Neo4j via neomodel

author:

Athanasios Anastasiou

date:

Mar 2023

class citehound.batchprocess.ItemRelationship(left_relationship, right_entity, relationship_data=None)

A very basic class that maintains a reference to two entities and the relationship that is supposed to be established between them

apply()

Applies the relationship :return:

class citehound.batchprocess.OGMTransaction

Something that needs to take place within an OGM Transaction

apply()

The point of actually running the transaction on the database. Anything that changes the state of the DBMS should execute in here. :return:

class citehound.batchprocess.OGMTransactionBatch(batch_size=2048)

A batch of transactions that are supposed to be applied in one go to the database

add_item(an_item)
apply()

Applies the relationships in a batch mode on the database

Returns:

extend_batch(another_batch)
class citehound.batchprocess.OGMTransactionBatchAsync(batch_size=2048)

Same as OGMTransactionBatch but uses Asyncio

apply()

Applies the relationships in a batch mode on the database

Returns: