spring-data-neo4j

Spring Data Neo4j: why save method takes so long?

て烟熏妆下的殇ゞ 提交于 2019-12-01 10:57:14
I'm using Spring Data Neo4j in my project and I've noticed it takes too much time while saving my node entity classes (>300ms/node), which actually are pretty simple (they only contain one property, a simple long id). The relationships between nodes are also quite simple (I'm simply trying to represent a social network). For the rest, I use cypher queries and the timings are pretty much faster and acceptable (~3-30ms). This turns out to be a huge problem, since a basic part of my project is populating the graph and only then "trigger" queries. Any suggestions what the reason(s) could be? The

How To Merge Instead of Create With Neo4jTemplate

心不动则不痛 提交于 2019-12-01 10:20:55
问题 I'm currently iterating over an array where each index contains two nodes and a relationship (Part_1 -> Part_2), and I'm using the Neo4jTemplate.save() method to persist it into the database. However, some indexes have repeated nodes that will have relationships with other nodes (Part_2 -> Part_3). My version currently creates a new node and relationship every time instead of merging if a node already exists. I read this post, but I don't understand how to implement it so that two of the same

GraphQueryLookupStrategy.resolveQuery exception on migration from SDN 4.0 to SDN 4.1.RC1

天涯浪子 提交于 2019-12-01 09:31:46
I am in the process of migrating my application to use SDN 4.1.0.RC1 but have encountered a few issues after trying to boot the application. I have made the necessary configuration changes to correctly use the HTTPDriver to my remote server (localhost:7474) and when booting the application I get the following error with one of my repositories while attempting to load the spring context. Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userRepository': Invocation of init method failed; nested exception is java.lang.AbstractMethodError: org

GraphQueryLookupStrategy.resolveQuery exception on migration from SDN 4.0 to SDN 4.1.RC1

余生长醉 提交于 2019-12-01 08:54:47
问题 I am in the process of migrating my application to use SDN 4.1.0.RC1 but have encountered a few issues after trying to boot the application. I have made the necessary configuration changes to correctly use the HTTPDriver to my remote server (localhost:7474) and when booting the application I get the following error with one of my repositories while attempting to load the spring context. Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name

Spring Data Neo4j: why save method takes so long?

我与影子孤独终老i 提交于 2019-12-01 08:35:30
问题 I'm using Spring Data Neo4j in my project and I've noticed it takes too much time while saving my node entity classes (>300ms/node), which actually are pretty simple (they only contain one property, a simple long id). The relationships between nodes are also quite simple (I'm simply trying to represent a social network). For the rest, I use cypher queries and the timings are pretty much faster and acceptable (~3-30ms). This turns out to be a huge problem, since a basic part of my project is

Spring Data Neo4J repository findAll() results in a nullpointerexception

好久不见. 提交于 2019-12-01 07:16:00
I have made a simple Repository containing all the persons in my system, everything seems to work fine. I can add, remove and even retrieve single persons based on a given key and value but for some reason i can't retrieve all persons stored in the Repository directly. I tried do it by using the findAll() method, which should return an iterable. I then try to iterate with the iterable and store each person in an arraylist which i want the function to return. public List<Person> getAllPersons() { Iterable<Person> p = personRepository.findAll(); System.out.println("person count: " +

How to configure Neo4j embedded to run apoc procedures?

孤街醉人 提交于 2019-12-01 03:46:50
问题 I have setup Neo4j using the latest spring 1.5 release, spring-data-neo4j 4.2, with ogm drivers. The configuration is using embedded driver without URI (so impermanent database store) Here is the spring @Configuration bean content: @Bean public org.neo4j.ogm.config.Configuration neo4jConfiguration() { org.neo4j.ogm.config.Configuration configuration = new org.neo4j.ogm.config.Configuration(); configuration.driverConfiguration().setDriverClassName("org.neo4j.ogm.drivers.embedded.driver

How to enable neo4j webadmin when using spring-data-neo4j?

扶醉桌前 提交于 2019-12-01 02:00:57
I am bootstrapping a new project from the Accessing Neo4j Data with REST example. The example uses an embedded database rather than a standalone neo4j server, but I would like to use the Neo4J webadmin interface for visualisation of my data. How do I enable the webadmin interface starting from this configuration? (They got WrappingNeoServerBootstrapper working in use WrappingNeoServerBootstrapper with spring-data-neo4j but a lot of knowledge is omitted from the answer, e.g. it is not even mentioned where to place to the configuration. Being new to POMs, Spring Boot and Neo4j I therefore can't

How to enable neo4j webadmin when using spring-data-neo4j?

六眼飞鱼酱① 提交于 2019-11-30 20:51:52
问题 I am bootstrapping a new project from the Accessing Neo4j Data with REST example. The example uses an embedded database rather than a standalone neo4j server, but I would like to use the Neo4J webadmin interface for visualisation of my data. How do I enable the webadmin interface starting from this configuration? (They got WrappingNeoServerBootstrapper working in use WrappingNeoServerBootstrapper with spring-data-neo4j but a lot of knowledge is omitted from the answer, e.g. it is not even

Can't move to Neo4j 2.2.0 and Spring Data Neo4j 3.3.0.RELEASE

夙愿已清 提交于 2019-11-30 05:24:10
I use Spring 4.1.6.RELEASE and Spring Boot 1.2.3.RELEASE. Right now, I can't smoothly move from Neo4j 2.1.7 and SDN 3.2.2.RELEASE to Neo4j 2.2.0 and SDN 3.3.0.RELEASE First of all, Neo4jHelper class is absent... so what should be used instead ? Also, my tests crashes with a following exceptions: org.springframework.dao.InvalidDataAccessApiUsageException: nested exception is org.neo4j.graphdb.NotInTransactionException at org.springframework.data.neo4j.support.Neo4jExceptionTranslator.translateExceptionIfPossible(Neo4jExceptionTranslator.java:51) at org.springframework.dao.support