Re: [Neo] Community Program Review at FOSS4G 2010

2010-05-06 Thread Raul Raja Martinez
voted for it 2010/5/4 Craig Taverner cr...@amanzi.com Hi guys, I've applied to present Neo4j Spatial (Neo4j as a true GIS database for mapping data) at the FOSS4G conference in September. To increase the chances of the presentation getting accepted, it helps to get community votes. So, if

Re: [Neo] Evaluating Neo4J as an enterprise class application

2010-05-02 Thread Raul Raja Martinez
We have stress tested neo4j with over 500 concurrent users in a webapp with a smaller dataset and we found no performance issues. We even wrap their api in a domain layer that adds some extra overhead. One thing to keep in mind is that if your data ever grows to a point where it needs to be

Re: [Neo] Estrange exception when running multithreaded

2010-02-26 Thread Raul Raja Martinez
That makes sense, I'll give it a try, thanks! 2010/2/26 Mattias Persson matt...@neotechnology.com: 2010/2/26 Raul Raja Martinez raulr...@gmail.com: Hi Mattias, Thanks for the docs. I'm trying to solve this issue now and here is the problem I'm facing... Where it says in the wiki: Rewrite

Re: [Neo] Can you use EmbeddedGraphDatabase without a filesystem?

2010-02-26 Thread Raul Raja Martinez
We setup an fs based graph on the jvm java.io.tmp folder and destroy on every setup() teardown() if necessary. This is how all of our unit tests run and it works fine. An in memory store may give you a false view on how things work if one of the things you are testing is performance, specially in

Re: [Neo] Estrange exception when running multithreaded

2010-02-26 Thread Raul Raja Martinez
) { log.error(permanent failure after attempt + i); } } finally { tx.finish(); } } return result; } } 2010/2/26 Raul Raja Martinez raulr...@gmail.com: That makes sense, I'll give it a try, thanks! 2010/2/26 Mattias

Re: [Neo] Estrange exception when running multithreaded

2010-02-25 Thread Raul Raja Martinez
{ tx.finish(); } return result; } } 2010/2/22 Mattias Persson matt...@neotechnology.com: I wrote a reply to this, but decided to put it on the wiki instead... so head over to http://wiki.neo4j.org/content/Transactions#Deadlocks and read all about it :) 2010/2/22 Raul Raja

Re: [Neo] Neo4j Traverse API

2010-02-24 Thread Raul Raja Martinez
If your resultset returns too many records is going to be slow sorting after retrieving the results. If you results have to be paginated in most cases you have to sort over the full resultset. Also if you plan to get things ordered by multiple properties you need some kind of btree structure. This

[Neo] Reset traverser iterator

2010-02-23 Thread Raul Raja Martinez
Hi, I was wondering if it is possible to reset a traverser iterator. Looking at the Traverser interface comment it says... // Doc: especially remove() thing /** * Returns an {...@link Iterator} representing the traversal of the graph. The * iteration is completely lazy in that it

[Neo] Estrange exception when running multithreaded

2010-02-21 Thread Raul Raja Martinez
Hi, I have some code that runs in parallel through a Thread pool executor. I'm getting the following exception: publish exception: class org.neo4j.kernel.impl.transaction.DeadlockDetectedException : Transaction[Status=STATUS_ACTIVE,ResourceList=Xid[GlobalId[NEOKERNL|1266821950597|383448],

Re: [Neo] filtering content based on tags in multiple levels

2010-02-17 Thread Raul Raja Martinez
Hi Sumanth, You can have all your questions and answers be nodes that are connected through relationships that are your tags. For any kind of filtering you can have Traversers with returnable evaluators that evaluate the kind of results you want back from you graph structure. So the basic answer

Re: [Neo] neo4j performance testing

2010-02-11 Thread Raul Raja Martinez
Hi DMitri, are you running JMeter distributed with many agents? Is the sample data sent to each servlet for each JMeter agent the same? Our experience with JMeter is that when running multiple threads on a single machine the numbers don't really give you a close grasp or reality. Also their http

Re: [Neo] neo4j performance testing

2010-02-11 Thread Raul Raja Martinez
a required number of VPS'es and gen agent per thread environment (not sure, however, if this will be a not too expensive solution) ? Thanks for sharing your experience, Dmitri Raul Raja Martinez wrote: Hi DMitri, are you running JMeter distributed with many agents? Is the sample data sent

Re: [Neo] bug in Node.delete() ?

2010-02-10 Thread Raul Raja Martinez
delete the entire database. We could however have some kind of utility where you specify criterias to traverse and delete, but then again you could probably use the traverser api for that. Does that make enough sense to you? 2010/2/10, Raul Raja Martinez raulr...@gmail.com: Any plans

Re: [Neo] bug in Node.delete() ?

2010-02-09 Thread Raul Raja Martinez
Any plans to support cascade deletion? We currently have some cases where we have to manually iterate over the relationships and remove them. Not a big deal because we wrap many other operations but something that would nice to have out of the box. 2010/2/9 Mattias Persson

Re: [Neo] org.neo4j.impl.transaction.TransactionFailureException: No mapping found for branchId

2010-02-07 Thread Raul Raja Martinez
Thanks! 2010/2/7 Johan Svensson jo...@neotechnology.com Fix committed to kernel and index trunks. -Johan On Sat, Feb 6, 2010 at 10:33 PM, Raul Raja Martinez raulr...@gmail.com wrote: Yes, that's right, Thanks! 2010/2/6 Mattias Persson matt...@neotechnology.com Oh, I got

Re: [Neo] org.neo4j.impl.transaction.TransactionFailureException: No mapping found for branchId

2010-02-05 Thread Raul Raja Martinez
together with tm_tx_log.1 tm_tx_log.2 logs next time it happens. Regards, -Johan On Thu, Feb 4, 2010 at 7:33 PM, Raul Raja Martinez raulr...@gmail.com wrote: I'm not sure if this is a known bug or it has already been fixed. I'm seeing this in 1.0-b11-SNAPSHOT. Sometime after killing

Re: [Neo] Strange behavior when calling getSingleRelationship : More than one relationship[DynamicRelationshipType[profile], OUTGOING]

2010-02-04 Thread Raul Raja Martinez
to be able to have multiple relationships of the same type with the same source node and target node, in the case of this bug however you end up with two copies (in the in-memory cache, not on disk) of the exact same relationship. Cheers, Tobias On Thu, Feb 4, 2010 at 12:18 AM, Raul Raja Martinez

[Neo] org.neo4j.impl.transaction.TransactionFailureException: No mapping found for branchId

2010-02-04 Thread Raul Raja Martinez
I'm not sure if this is a known bug or it has already been fixed. I'm seeing this in 1.0-b11-SNAPSHOT. Sometime after killing an app running Neo I'm unable to restart the app as it always fails creating the EmbeddedNeo object. Caused by: org.neo4j.impl.transaction.TransactionFailureException: No

Re: [Neo] Strange behavior when calling getSingleRelationship : More than one relationship[DynamicRelationshipType[profile], OUTGOING]

2010-02-03 Thread Raul Raja Martinez
of the same type attached to the same node with the same id? or is this a bug? 2010/2/3 Raul Raja Martinez raulr...@gmail.com: ...ThreadPoolTaskExecutor#7ec48b77-42 02/03  exception: class org.neo4j.api.core.NotFoundException : More than one relationship[DynamicRelationshipType[profile], OUTGOING] found

Re: [Neo] Checking whether a relationship exists between two nodes...

2010-02-02 Thread Raul Raja Martinez
Same issue here. Would be nice to have something like node.hasRelationshipTo(node, relationship... relationships); 2010/2/2 Maria Giatsoglou mgiat...@csd.auth.gr: Hello all I am creating a project that performs a number of benchmark tasks on Neo. One of the tests measures the required time

Re: [Neo] Transaction Event Listeners

2010-01-18 Thread Raul Raja Martinez
transactions, however that way you'll only be notified before and after a transaction is committed, not _what_ was committed. If any of those suggestions would be useful I'd be happy to give an example of such code. 2010/1/14 Raul Raja Martinez raulr...@gmail.com: Hi Tobias, At this time we

[Neo] Nodes transactions, modifications and concurrency

2010-01-15 Thread Raul Raja Martinez
What would be the outcome of two transactions committing changes to the same property in different threads? Given this scenario Thread#1 Starts transaction at 12:00 Changes property title on Node#1 to first Commits transaction at 12:04 Thread#2 Starts transaction at 12:01 Changes property

Re: [Neo] Transaction Event Listeners

2010-01-14 Thread Raul Raja Martinez
! Cheers, Tobias On Thu, Jan 14, 2010 at 1:32 AM, Raul Raja Martinez raulr...@gmail.comwrote: Hi, Does neo4j provide some way for adding listeners to the transaction lifecycle? We would like to intercept when transacions are commited, created and rolledback to provide our own functionality

Re: [Neo] Transaction Event Listeners

2010-01-14 Thread Raul Raja Martinez
or in all of them at once if the transactions are distributed. Thanks! 2010/1/14 Raul Raja Martinez raulr...@gmail.com: Hi Tobias, thanks for the info! I'm gonna consult with my team and we'll get back with some suggestions. 2010/1/14 Tobias Ivarsson tobias.ivars...@neotechnology.com: Hi Raul

Re: [Neo] Memory management in neo4j?

2010-01-14 Thread Raul Raja Martinez
I think the problem is that everything is in a big transaction. Try splitting in smaller transactions On Jan 14, 2010 6:33 PM, Defenestrator defenestration...@gmail.com wrote: How is memory managed in neo4j, does it page data out to disk like all database systems? Here's a sample program that

[Neo] Transaction Event Listeners

2010-01-13 Thread Raul Raja Martinez
Hi, Does neo4j provide some way for adding listeners to the transaction lifecycle? We would like to intercept when transacions are commited, created and rolledback to provide our own functionality for example ensure that a given node property is always set or some other properties are within a

Re: [Neo] Abstract unit test cases

2010-01-12 Thread Raul Raja Martinez
Thanks, that is helpful! 2010/1/12 Mattias Persson matt...@neotechnology.com: There's some classes I usually use (fits me, since I wrote them :) ). They are in https://svn.neo4j.org/laboratory/users/mattias/neo-test-fw/ 2010/1/12 Raul Raja Martinez raulr...@gmail.com: Anybody care to share

Re: [Neo] Read Transactions? Really?

2010-01-12 Thread Raul Raja Martinez
I understand but imaging this case... Model - Person encapsulates underlying node that access name property Controller - Handler that receives http request requests a model has transaction and delegates the model to a template to be rendered View - Template that gets rendered with domain objects

Re: [Neo] integer and substring searching using LuceneFulltextQueryIndexService

2010-01-11 Thread Raul Raja Martinez
AFAIK this behavior is specific to lucene as lucene indexes everything as Strings following their natural order. http://wiki.apache.org/lucene-java/SearchNumericalFields 2010/1/11 Zerony Zhao bw.li...@gmail.com: Hi Neo4j users, I am confused with LuceneFulltextQueryIndexService. For integer,

Re: [Neo] Read Transactions? Really?

2010-01-11 Thread Raul Raja Martinez
Not that this solves your issue but... 1. If it is a webapp you can use a filter that wraps the request around a transaction try catch finally... then your code would be transaction free (mostly) 2. If you use a Spring service you can use @Transational or AOP interceptors to annotate operations

[Neo] Abstract unit test cases

2010-01-11 Thread Raul Raja Martinez
Anybody care to share a strategy or base classes for unit testing operations in the graph? ___ Neo mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user

Re: [Neo] Retrieving nodes ordered by property

2010-01-04 Thread Raul Raja Martinez
, then the timeline index will do this for you. Otherwise there is no ready made component for this today. Happy hacking, Tobias On Mon, Jan 4, 2010 at 1:30 AM, Raul Raja Martinez raulr...@gmail.comwrote: Hi, Anybody has any experience returning indexed nodes ordered by a given property?. For example

Re: [Neo] Retrieving nodes ordered by property

2010-01-04 Thread Raul Raja Martinez
-way combination of k-dimensional indexes? I think I'm getting a headache just thinking about it :-) On Mon, Jan 4, 2010 at 10:17 AM, Raul Raja Martinez raulr...@gmail.comwrote: Hi Tobias, Thanks for the info! I understand the implications of returning ordered nodes. Do you guys plan

Re: [Neo] Persisting store metadata

2010-01-04 Thread Raul Raja Martinez
We personally use a facade/factory that allows us to interface to neo4j and the Lucene indexes as if it was a single system. This service is a singleton initialized with Spring with an init and destroy method that properly starts/shutdown the store and index. If it was up to me the index utils

Re: [Neo] Neo in a cluster?

2010-01-03 Thread Raul Raja Martinez
, a combination that will give this functionality. Avishay From: Raul Raja Martinez raulr...@gmail.com To: Neo user discussions user@lists.neo4j.org Sent: Sun, January 3, 2010 2:09:36 AM Subject: Re: [Neo] Neo in a cluster? In your framework, do all

[Neo] Retrieving nodes ordered by property

2010-01-03 Thread Raul Raja Martinez
Hi, Anybody has any experience returning indexed nodes ordered by a given property?. For example return all nodes ordered by creationDate. I understand that if the node property is not indexed I'd have to iterate over all nodes first then order then limit the results which seems overkill to me.

Re: [Neo] Neo in a cluster?

2010-01-02 Thread Raul Raja Martinez
Hi Anders, We tried following the example but found that when used in a webapp the whole request needs to be wrapped since neo4j requires transactions for reads too. We use some objects that lazily print properties in tapestry / jsp pages and eventually we'd get errors since the call to read the

Re: [Neo] Neo in a cluster?

2010-01-02 Thread Raul Raja Martinez
layer being queried using JDOQL, SQL, or JPQL that could be used to gauge raw performance of the query layer (filtering, sorting, aggregates, etc.). -Original Message- From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On Behalf Of Raul Raja Martinez Sent: Friday

Re: [Neo] Neo in a cluster?

2010-01-02 Thread Raul Raja Martinez
be interesting in such a framework. Avishay From: Raul Raja Martinez raulr...@gmail.com To: Neo user discussions user@lists.neo4j.org Sent: Sat, January 2, 2010 2:09:09 AM Subject: Re: [Neo] Neo in a cluster? Hi Peter, Yes we looked at jo4neo and found it very interesting

Re: [Neo] Neo in a cluster?

2010-01-01 Thread Raul Raja Martinez
://gremlin.tinkerpop.com- PageRank in 2 lines of code. http://www.linkedprocess.org - Computing at LinkedData scale. On Thu, Dec 31, 2009 at 10:53 PM, Raul Raja Martinez raulr...@gmail.com wrote: Hi Johan, It does and we're very excited about Neo4j. Can't wait for your clustering

Re: [Neo] Neo in a cluster?

2010-01-01 Thread Raul Raja Martinez
I forgot to mention that if implementing JPA/JDO it'd provably good to do it as a Datanucleus store for example http://www.datanucleus.org/plugins/store.db4o/index.html 2010/1/1 Raul Raja Martinez raulr...@gmail.com Hi Peter, Yes we looked at jo4neo and found it very interesting