logo
down
shadow

Cayley with BoltDB backend?


Cayley with BoltDB backend?

By : Tarek Roukos
Date : November 16 2020, 06:23 AM
wish of those help I am new to Go and I am trying to setup a simple graph database using Cayley with BoltDB as the backend datastore. Right now I am trying to run cayley from the command line. Running this command: , At least bolt must be installed.
code :
go get github.com/boltdb/bolt/...
cayley init --db=bolt --dbpath=/tmp/someBoltDB


Share : facebook icon twitter icon
Cayley: How do insert vertices and edges into graph using Cayley-Gremlin code?

Cayley: How do insert vertices and edges into graph using Cayley-Gremlin code?


By : user2950201
Date : November 17 2020, 11:52 AM
I hope this helps you . gremlin in cayley is only for traversals. https://github.com/google/cayley/blob/master/docs/GremlinAPI.md is the complete gremlin API for cayley.
use http to add data: https://github.com/google/cayley/blob/master/docs/HTTP.md#apiv1write
How to use Cayley with a Postgres backend?

How to use Cayley with a Postgres backend?


By : Bart van Tuyl
Date : March 29 2020, 07:55 AM
it fixes the issue It looks like Cayley is using lib/pq under the covers. lib/pq connection strings look something like this: "user=pqgotest dbname=pqgotest sslmode=verify-full" or "postgres://pqgotest:password@localhost/pqgotest?sslmode=verify-full" For full details see the lib/pq documentation at godoc.org.
(You can see where the sql.Open call is made in cayley/graph/sql/quadstore.go connectSQLTables.)
Key Order in BoltDB

Key Order in BoltDB


By : Kalaivani A
Date : March 29 2020, 07:55 AM
wish helps you To have the keys naturally ordered, use BigEndian
In LittleEndian, the bytes are swapped, which would give it to you out of order.
BoltDB performance as a backend DB

BoltDB performance as a backend DB


By : EnergyUK
Date : March 29 2020, 07:55 AM
may help you . A1. Yes, we use it with way more than 1000 concurrent connections.
A2. Yes, bolt is thread safe, when you call db.Update, it will lock the database, so you know you data will always be consistent.
Cayley : How to put the limit/depth to show the graph hierarchy in cayley?

Cayley : How to put the limit/depth to show the graph hierarchy in cayley?


By : Harish Garg
Date : March 29 2020, 07:55 AM
I think the issue was by ths following , You can limit the depth by passing the max depth as second parameter to the FollowRecursive function:
code :
g.V("B").FollowRecursive(path,2 )
shadow
Privacy Policy - Terms - Contact Us © ourworld-yourmove.org