Skip to content

Commit

Permalink
[DPTOOLS-2210] Upgrade Neo4j driver to 1.7.2 (#37)
Browse files Browse the repository at this point in the history
* [DPTOOLS-2210] Upgrade Neo4j driver to 1.7.2

* Update version
  • Loading branch information
jinhyukchang authored May 3, 2019
1 parent d2ed977 commit b583ef0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 0 additions & 4 deletions databuilder/publisher/neo4j_csv_publisher.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,6 @@ def _publish_node(self, node_file):
# If label is seen for the first time, try creating unique index
if label not in self.labels:
tx.commit() # Transaction needs to be committed as index update will make transaction to abort.
tx.close()
LOGGER.info('Committed {} records'.format(count + 1))

self._try_create_index(label)
Expand All @@ -214,7 +213,6 @@ def _publish_node(self, node_file):
tx = self._execute_statement(stmt, tx, count)

tx.commit()
tx.close()
LOGGER.info('Committed {} records'.format(count + 1))

def is_create_only_node(self, node_record):
Expand Down Expand Up @@ -271,7 +269,6 @@ def _publish_relation(self, relation_file):
expect_result=self._confirm_rel_created)

tx.commit()
tx.close()
LOGGER.info('Committed {} records'.format(count + 1))

def create_relationship_merge_statement(self, rel_record):
Expand Down Expand Up @@ -369,7 +366,6 @@ def _execute_statement(self,

if count > 1 and count % self._transaction_size == 0:
tx.commit()
tx.close()
LOGGER.info('Committed {} records so far'.format(count))
return self._session.begin_transaction()

Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from setuptools import setup, find_packages


__version__ = '1.0.14'
__version__ = '1.0.15'


setup(
Expand Down Expand Up @@ -32,7 +32,7 @@
'pyhocon==0.3.42',
'pytest==3.6.0',
'six',
'neo4j-driver==1.6.0',
'neo4j-driver==1.7.2',
'antlr4-python2-runtime==4.7.1',
'statsd==3.2.1',
'retrying==1.3.3'
Expand Down

0 comments on commit b583ef0

Please sign in to comment.