Questions tagged [neo4j-bolt]

Tag for the newly designed remoting protocol BOLT.

The Neo4j 3.0 Milestone 1 release introduced Bolt, a new network protocol designed for high-performance access to graph databases.

Bolt will consolidate and refine all the ways of doing work with Neo4j, providing more consistent access with a pleasant separation of responsibility.

Bolt is a connection-oriented protocol, using a compact binary encoding over TCP or web sockets for higher throughput and lower latency.

BOLT Java, JavaScript and Python drivers are available today.

42 questions
8
votes
1 answer

Causal-cluster-friendly implementation

I am building an application that uses the native neo4j JavaScript driver. I want to make sure that my code will work if we migrate to a causal cluster. The online documentation doesn't seem to be clear about how to do this: I notice sparse…
Joel Stevick
  • 1,638
  • 2
  • 16
  • 22
6
votes
1 answer

Session.run() VS transaction.run() in Neo4j Bolt

What is the difference between the Session.run() and transaction.run() in Neo4j Bolt driver? My knowledge is: Session.run() will execute a single statement transaction.run() executes multiple statements. Those are the information I know…
Jack Daniel
  • 2,527
  • 3
  • 31
  • 52
6
votes
1 answer

neo4j bolt driver is slower than http end point

We are using http end point for read queries so far and planning to move to java bolt driver. But in initial tests it is observed that bolt driver is slower than http end point. following is the java driver code we are using. Driver instance…
v rokandla
  • 61
  • 2
3
votes
2 answers

How to use ngrok to expose neo4j instance running on localhost to be used by google colab?

I am trying to use my local neo4j server through google colab. I am using ngrok to expose the port using command: ngrok http 7687. It gives something like this: ngrok is working fine. But When trying to connect using colab, I am getting the…
Paras Gupta
  • 99
  • 1
  • 6
3
votes
0 answers

Poor performance when constructing neo4j db on remote server through bolt

I'm constructing a neo4j db from various sources with a c# script runing on local and connecting to neo4j with the official bolt driver. When creating the db in localhost it takes around 3 minutes to create both nodes and relationships but when…
Pierre Jeannet
  • 255
  • 1
  • 10
3
votes
2 answers

Neo4j: unit testing the bolt driver properly

I am adding the Neo4j Bolt driver to my application just following the http://neo4j.com/developer/java/: import org.neo4j.driver.v1.*; Driver driver = GraphDatabase.driver( "bolt://localhost", AuthTokens.basic( "neo4j", "neo4j" ) ); Session…
Randomize
  • 8,651
  • 18
  • 78
  • 133
2
votes
0 answers

Python neo4j bolt driver loses connection after context switch

I have a backend written in django which uses the neo4j bolt driver to communicate with the neo4j graph db. I use a Singleton to handle the connection and the bolt driver closes the connection, whenever I access it from another location than where…
Sasorien
  • 21
  • 3
2
votes
0 answers

Neo4j browser can't fully connect to embedded instance

I'm trying to connect to a neo4j embedded instance with the neo4j browser but when I try to connect the browser just displays "Connecting..." forever and the following error is shown in the browser console: Uncaught Error: Bolt V2 should always…
Greg
  • 1,225
  • 3
  • 16
  • 35
2
votes
1 answer

How do I connect to a neo4j embedded instance via bolt using the neo4j browser?

I've followed the instructions in section 4.14 of the documentation but I can't figure out how to connect the neo4j browser to my embedded instance. Once the server is running, I open the browser via neo4j desktop and run :server connect. This…
Greg
  • 1,225
  • 3
  • 16
  • 35
2
votes
1 answer

Downgrade Graph Neo4J

I have a Neo4J Server running in a Linux VM hosted in Azure. I used version 3.1.3 and I just upgrade to version 3.2 with setting dbms.allow_format_migration=true Sadly, I can't access anymore to the Neo4J browser cause I am facing the same problem…
Julien
  • 23
  • 3
2
votes
1 answer

Different behavior between neo4j-gremlin-bolt , Tinkergraph and Neo4j-gremlin

I am seeing different behavior between Tinkergraph and Neo4j-gremlin from the neo4j-gremlin-bolt Neo4j implementation of Tinkerpop3, specifically in this bit of code: // different Tinkerpop impls Graph graph = new Neo4JGraph(driver,…
dave
  • 29
  • 2
2
votes
2 answers

Passing sets of properties and nodes as a POST statement wit KOA-NEO4J or BOLT

I am building a REST API which connects to a NEO4J instance. I am using the koa-neo4j library as the basis (https://github.com/assister-ai/koa-neo4j-starter-kit). I am a beginner at all these technologies but thanks to some help from this forum I…
n4nite
  • 459
  • 4
  • 19
2
votes
0 answers

Preparing to use neo4j bolt with Play Framework

I want to access a Neo4j DB from my Play Framework application in addition to a MySQL DB. The MySQL access is working properly. In preparation to code for accessing Neo4j via Bolt, I have: Added a reference to the Driver in the project…
Bill Michaelson
  • 376
  • 2
  • 11
1
vote
1 answer

GraphQL vs Bolt - Neo4j

I am looking at the GRANDstack, and now I'm wondering- why would someone use GraphQL over the bolt protocol for accessing neo4j?
pebd
  • 84
  • 8
1
vote
1 answer

How to add user defined constraints on a node/relationship in Neo4j using Java API

Consider I have a node having Label L1 in Neo4j database. I need to put a constraint on all nodes having label L1 such that there shall be no outgoing edge from these nodes. So whenever user tries to add an outgoing edge from these nodes, a…
1
2 3