graph-databases

Why do I get a “Cartesian Product” warning?

六眼飞鱼酱① 提交于 2019-12-05 06:38:10
I am still trying to understand why I get a cartesian product warning for a certain format for a query in neo4j and not for another. This is how I set up my database: CREATE (q:Form {version: "1.0"}) CREATE (q:Question {text: "Sector de la empresa", active: true}) I then tried the following query: MATCH (f:Form {version: "1.0"}), (q:Question {text: "Sector de la empresa"}) CREATE (f)-[:asks]->(q) RETURN f, q However, I get the following warning: This query builds a cartesian product between disconnected patterns. If a part of a query contains multiple disconnected patterns, this will build a

How to write a select query or server-side function that will generate a neat time-flow graph from many data points?

跟風遠走 提交于 2019-12-05 05:32:08
NOTE: I am using a graph database (OrientDB to be specific). This gives me the freedom to write a server-side function in javascript or groovy rather than limit myself to SQL for this issue.* NOTE 2: Since this is a graph database, the arrows below are simply describing the flow of data. I do not literally need the arrows to be returned in the query. The arrows represent relationships.* I have data that is represented in a time-flow manner; i.e. EventC occurs after EventB which occurs after EventA, etc. This data is coming from multiple sources, so it is not completely linear. It needs to be

Differences between NoSQL databases

泪湿孤枕 提交于 2019-12-05 04:04:21
问题 NoSQL term has 4 categories. Key\value stores Document oriented Graph Column oriented. From my point of view all these data modeling has same definition, What are differences? Key\value database maintains data in structure like object in OOP. having access to data is base on unique key. Column oriented is an approach like key\value! But in key\value, you cant access to value by query. I mean, queries are key-based. Compare 1st & 2nd picture from 2 different categories. Document oriented

Looking for distributed, in-memory Graph DB [closed]

青春壹個敷衍的年華 提交于 2019-12-05 02:27:15
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . Is there a database which will satisfy all (or at least most) of this requirements? Graph oriented - optimized for storing graphs and traversal(e.g HyperGraphDB, Neo4j) Running in memory, but having a persisted storage (e.g. Redis) Distributed (e.g. membase) Had .NET adapter (TCP/IP, not HTTP REST) Or am I

When developing web applications when would you use a Graph database versus a Document database?

会有一股神秘感。 提交于 2019-12-04 23:06:06
问题 I am developing a web-based application using Rails. I am debating between using a Graph Database, such as InfoGrid, or a Document Database, such as MongoDB. My application will need to store both small sets of data, such as a URL, and very large sets of data, such as Virtual Machines. This data will be tied to a single user. I am interested in learning about peoples experiences with either Graph or Document databases and why they would use either of the options. Thank you 回答1: I don't feel

Neo4j node property type

陌路散爱 提交于 2019-12-04 19:05:27
问题 I'm playing around with neo4j, and I was wondering, is it common to have a type property on nodes that specify what type of Node it is? I've tried searching for this practice, and I've seen some people use name for a purpose like this, but I was wondering if it was considered a good practice or if indexes would be the more practical method? An example would be a "User" node, which would have type: user , this way if the index was bad, I would be able to do an all-node scan and look for types

How to do an initial batch import of CSV / MySQL data into neo4j database

谁都会走 提交于 2019-12-04 12:27:27
问题 I am considering replacing a MySQL database with a neo4j database. I am a complete beginner with neo4j and would like to know how to go about doing a batch insert of my current MySQL data into the neo4j database so i can experiment and begin to learn about neo4j. the relational database consists of 4 tables: Person , Organism , Story , Links . Links describes relationships between rows in the other 3 tables. Links : ID, FromTable, FromID, ToTable, ToID, LinkType Person : ID, property_2,

How to realize a nested tree in Neo4j?

痞子三分冷 提交于 2019-12-04 09:49:59
I am just getting started with Neo4j and Graph Databases and was wondering if nested hierarchical trees are a good use case for Neo4j. A common example would be a nested set of comments. For example: - Article - Comment 1 on Article - Comment 2 on Comment 1 - Comment 3 on Comment 1 - Comment 4 on Comment 3 - Comment 5 on Article As I understand it, the article and the comments would each be nodes. And each comment would have a parent-child relationship. Getting all direct comments on the article (1 and 5) would be easy. But how about retrieving the whole set? Please excuse the use of layman

Using both graph db and document db

限于喜欢 提交于 2019-12-04 09:33:29
I'm considering a setup where I have entities stored both in a document db (e.g. CouchDB) and a graph db (e.g. Neo4j). The rationale is storing each entity information (data, blobs, values, complex internal structure) in the document db while storing the entity relations (parents, children, associated entities) in the graph db. Has anyone done / seen / been bitten by a setup like this? What kind of issues should I expect? First thing that come to mindaka the 2-phase commit. But backups are problematic too here. You may check out the book " Seven DBs in Seven Weeks ". 8th chapter talks about

Rails 3 and graph databases

自作多情 提交于 2019-12-04 08:26:27
问题 A Rails 3 application running on Postgresql needs to switch to a graph database to be able to grow up. There are many of them and they all offer different kind of API, REST mostly. I am highly inspired by talks of Emil Eifrem, CEO of NeoTechnologies, about what can be accomplished with Neo4j. I must confess, I've played with it and this thing is absolutely what we need, but there are several obstacles. REST API is not transactional. Rails 3 apps are running on ruby 1.9.2, but not jRuby 1.5.3