neo4j

Neo4j query result cache

北战南征 提交于 2019-12-24 06:46:19
问题 I've noticed that when I run a heavy query over and over again, it takes the same duration to finish. This is not typical behavior of databases. Does neo4j cache queries? 回答1: Neo4j caches the store files, node and relationship objects and query plans. However it does not query results by itself, this needs to be done on application side. 来源: https://stackoverflow.com/questions/31646017/neo4j-query-result-cache

cant use dollar sign ($) in neo4j properties

自作多情 提交于 2019-12-24 06:21:26
问题 I want to run a basic query on my node/express server var params = { props : { id : 1, name : "Peter" } } var query = [ 'MERGE (p:Person{id:$props.id})', 'RETURN n.id as id' ]; ... session.run(query, params) .then(function(resp){ ... but I'm getting the following error message: { code: 'Neo.ClientError.Statement.SyntaxError', message: 'Variable $props not defined (line 2, column 8 (offset: 28))\n"name : $props.id"\n ^' } The docs showed me that it is possible to use the dollar sign and I

Design : Relation Vs. Node

拟墨画扇 提交于 2019-12-24 05:49:22
问题 I am new to graph database, and overwhelmed with its promised scope and power. When designing app, it is very important that we align our emotional design patterns with practical performance designs. One of the question that is bothering me is whether to make certain piece of information as relation attribute or node attribute. Here's the use case. We have entities that are related by incoming relation "service_provider". The starting node becomes a provider to end node. Now each of the

How to check if a schema index already exists for a node's property in neo4j?

≯℡__Kan透↙ 提交于 2019-12-24 05:42:09
问题 I am using IndexDefinition for populating index over a given property in neo4j. IndexDefinition indexDefinition = schema.indexFor(DynamicLabel.label("Person")).on("NodeType").create(); Problem is when I execute the program again with similar code for Index population, I get following exception. org.neo4j.kernel.api.exceptions.schema.AlreadyIndexedException: Already indexed :label[0](property[0]). at org.neo4j.kernel.impl.api.DataIntegrityValidatingStatementContext.checkIndexExistence

How to check if a schema index already exists for a node's property in neo4j?

这一生的挚爱 提交于 2019-12-24 05:42:01
问题 I am using IndexDefinition for populating index over a given property in neo4j. IndexDefinition indexDefinition = schema.indexFor(DynamicLabel.label("Person")).on("NodeType").create(); Problem is when I execute the program again with similar code for Index population, I get following exception. org.neo4j.kernel.api.exceptions.schema.AlreadyIndexedException: Already indexed :label[0](property[0]). at org.neo4j.kernel.impl.api.DataIntegrityValidatingStatementContext.checkIndexExistence

how can i install apoc in neo4j manually?

廉价感情. 提交于 2019-12-24 05:18:10
问题 Are there any alternative methods other than what is described in the link below to install the package? Installing APOC via NEO4J Desktop Would it be possible to download from the repository? Please share any insights as to how to achieve this 回答1: you can download the jar file and copy the jar file into the plugins folder. Then add the following line to $NEO4J_HOME/conf/neo4j.conf and restart neo4j dbms.security.procedures.unrestricted=apoc.* jar file: https://github.com/neo4j-contrib/neo4j

Where does Neo4j store the data?

僤鯓⒐⒋嵵緔 提交于 2019-12-24 05:11:27
问题 I am new to Neo4j and doing some test on Ubuntu. I was wondering where does Neo4j store the data. Where do they store the created nodes and relationships? 回答1: This should help: dpkg -L neo4j config /etc/neo4j/neo4j.properties /etc/neo4j/neo4j-wrapper.conf /etc/neo4j/neo4j-http-logging.xml /etc/neo4j/neo4j-server.properties logs /var/log/neo4j /var/lib/neo4j/data/graph.db/messages.log binaries /usr/bin/neo4j-shell /usr/bin/neo4j data /var/lib/neo4j/data/graph.db store-files nodes, properties,

Neo4j REST Encoding

孤街醉人 提交于 2019-12-24 05:06:55
问题 I'm using neo4jclient. When I try to create/update an node, special chars like äöü are replaced with �. Do I have to set a specific http header like content-type, content-encoding? If yes, what kind of header and what is the value of this header? Thanks. EDIT: This is how the request looks like: POST http://...........:7474/db/data/batch HTTP/1.1 Accept: application/json;stream=true User-Agent: RestSharp 103.1.0.0 Content-Type: application/json Host: ............:7474 Content-Length: 267

Add Unique Nodes and relationship between them from Existing Setup in Neo4j

南笙酒味 提交于 2019-12-24 04:55:10
问题 This is in continuation of the problem defined here Query case-specific nodes in Neo4j So the situation looks like the image below(please bear with the crappy image) The blue links denotes the [:RELATES_TO] relationship with the number in black boxes denoting the value of Length property. Similar values also exists for all such other [:RELATES_TO] relationship which is not shown here. Now I would like to find and create unique Nodes based on 'Name' property of Performer Nodes . Continuing

Unable to add Neo4j GORM plugin to a Grails project

僤鯓⒐⒋嵵緔 提交于 2019-12-24 04:26:33
问题 I want to use Neo4j graph database for my Grails project. I created a new Grails project (i'm using Intellij Ultimate Edition). The app runs fine. When i try to add the Neo4j dependency (compile ":neo4j:2.0.0-M02") in my BuildConfig.groovy and try to update the project I get the following errors in the console: Error | Resolve error obtaining dependencies: Could not find artifact org.neo4j:neo4j-jdbc:jar:2.0.2 in grailsCentral (https://repo.grails.org/grails/plugins) (Use --stacktrace to see