Re: [Neo] Retrieving nodes ordered by property

2010-01-04 Thread Mattias Persson
quot;. > This is necessary when the data is iterated over using pagination and the > order determines what the next start node is next. > ___ > Neo mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinf

Re: [Neo] Drop an index.

2010-01-04 Thread Mattias Persson
neo4j than "drop" I suppose. >> >> Thank you, >> Marko. >> >> http://markorodriguez.com >> http://gremlin.tinkerpop.com >> _______ >> Neo mailing list >> User@lists.neo4j.org >> https://lists.neo4

Re: [Neo] Performance evaluation in neo4j

2010-01-04 Thread Mattias Persson
dware (raid) you may get a higher insert/update >> speed. Batch inserter mode does not support concurrent updates. > > yes > >> >> Regards, >> -Johan > > Thanks. Any other tips on concurrency are very appreciated. > > best regard, > strozzino &

Re: [Neo] Persisting store metadata

2010-01-05 Thread Mattias Persson
); > -- > Tobias Ivarsson > Hacker, Neo Technology > www.neotechnology.com > Cellphone: +46 706 534857 > ___ > Neo mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > -- Mattias Persson, [matt...@neotechnology.com] Neo Technology, www.neotechnology.com ___ Neo mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user

Re: [Neo] getProperty and null...

2010-01-05 Thread Mattias Persson
> _______ > Neo mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > -- Mattias Persson, [matt...@neotechnology.com] Neo Technology, www.neotechnology.com ___ Neo mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user

Re: [Neo] Persisting store metadata

2010-01-05 Thread Mattias Persson
the information would be > guaranteed. The upside is, as you say, that you get all these nice things such as consistency for free... as well as that it automatically tags along in online backup and all such things, which is quite nice. > > /Tobias > > On Tue, Jan 5, 2010 at 9:34 AM, M

Re: [Neo] RFC: Potentially breaking changes in the upcoming 1.0 release

2010-01-06 Thread Mattias Persson
hone: +46 706 534857 > _______ > Neo mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > > ___ > Neo mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > -- Mattias Persson, [matt...@neotechnology.com] Neo Technology, www.neotechnology.com ___ Neo mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user

Re: [Neo] Request a sample code to illustrate finding all nodes where key < value

2010-01-10 Thread Mattias Persson
where key < value. > > Appreciate your help. > > Zerony > ___________ > Neo mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > -- Mattias Persson, [matt...@neotechnology.com] Neo Technology, www.neotechnology.com ___ Neo mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user

Re: [Neo] Request a sample code to illustrate finding all nodes where key < value

2010-01-12 Thread Mattias Persson
0 TO 1]" ) will returns node with "somekey" value such as 1, 11, 111 > supposing having 1, 11, 111, but I only want returning 1 exactly. I know one > of solution is using padding scheme to solve the problem. Is there any other > ways to solve the problem? > > On Sun, Jan

Re: [Neo] Abstract unit test cases

2010-01-12 Thread Mattias Persson
n the graph? > ___ > Neo mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > -- Mattias Persson, [matt...@neotechnology.com] Neo Technology, www.neotechnology.com ___ Neo mailing list

Re: [Neo] Abstract unit test cases

2010-01-12 Thread Mattias Persson
Although they use the "neo" component, they should be updated to use the "neo4j-kernel" component... I'll fix soon 2010/1/12 Mattias Persson : > There's some classes I usually use (fits me, since I wrote them :) ). > They are in https://svn.neo4j.org/laboratory

Re: [Neo] Read Transactions? Really?

2010-01-12 Thread Mattias Persson
nd use Spring injection, but what if you don't? > > You do it the Oracle(tm) way : buy more ram :) > > -- > Laurent "ker2x" Laborde > Sysadmin & DBA at http://www.over-blog.com/ > ___ > Neo mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > -- Mattias Persson, [matt...@neotechnology.com] Neo Technology, www.neotechnology.com ___ Neo mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user

Re: [Neo] integer and substring searching using LuceneFulltextQueryIndexService

2010-01-12 Thread Mattias Persson
___ >> Neo mailing list >> User@lists.neo4j.org >> https://lists.neo4j.org/mailman/listinfo/user >> > ___ > Neo mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > -- Mattias Persson, [matt...@neotechnology.com] Neo Technology, www.neotechnology.com ___ Neo mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user

Re: [Neo] Read Transactions? Really?

2010-01-12 Thread Mattias Persson
de the transanctional scope. This is the >> same >> issue you find with hibernate with LazyInitExceptions when you call >> to read >> outside of a session. >> >> On Jan 12, 2010 2:28 AM, "Mattias Persson" >> wrote: >> >> Your code doesn't ne

Re: [Neo] Read Transactions? Really?

2010-01-12 Thread Mattias Persson
gt; -- > Laurent "ker2x" Laborde > Sysadmin & DBA at http://www.over-blog.com/ > ___ > Neo mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > -- Mattias Persson, [matt...@neotechnology.com] Neo Technology, w

Re: [Neo] integer and substring searching using LuceneFulltextQueryIndexService

2010-01-12 Thread Mattias Persson
t; On Jan 12, 2010 8:06 PM, "Mattias Persson" > wrote: > > Lucene supports *something*, but not from the query syntax (how odd is > that?)... what you can do is to subclass > LuceneFulltextQueryIndexService and @Override the formQuery method > with something like: >

Re: [Neo] Read Transactions? Really?

2010-01-12 Thread Mattias Persson
> reading, it will have to be split up into multiple transaction blocks. >> >> Ryan >> >> On Jan 12, 2010, at 5:28 AM, Mattias Persson wrote: >> >>> Your code doesn't need to be littered with transaction management. You >>> can have a very bi

Re: [Neo] Memory management in neo4j?

2010-01-17 Thread Mattias Persson
> System.out.println(node1.getId()); > Iterable knows = node1.getRelationships(); > for (Relationship know : knows) > { > Node friend_node = know.getOtherNode(node1); > System.out.println("\t" + friend_node.getProperty("name")); > } > neo.shutdown(); > } > > private static enum MyRel

Re: [Neo] Drop an index.

2010-01-18 Thread Mattias Persson
FYI, I've implemented such functionality in IndexService (and LuceneIndexService), i.e added methods: removeIndex( Node node, String key ) and removeIndex( String key ) They will be merged into trunk soon after 1.0 release. 2010/1/4 Mattias Persson : > 2010/1/4 Taylor Cowan : >>

Re: [Neo] Request a sample code to illustrate finding all nodes where key < value

2010-01-18 Thread Mattias Persson
You found your answers in another thread, right? 2010/1/12 Mattias Persson : > That's strange, let me have a look at it... I'll try such an example > and see if I can figure out why it isn't working! > > 2010/1/12 Zerony Zhao : >> Thanks for your reply. >>

Re: [Neo] Search Multiple Property Keys in LuceneIndexService

2010-01-18 Thread Mattias Persson
have title=Directory and name=Larry > Wachowski? The equivalent lucene query would be: > +title:Director +name:"Larry Wachowski" > > I know you can do this in the ruby version of neo, but I am using the java > version. Would I have to extend the LuceneIndexService and add t

Re: [Neo] Transaction Event Listeners

2010-01-18 Thread Mattias Persson
;>>> Inserts, Updates, Cache etc... >>>> ___ >>>> Neo mailing list >>>> User@lists.neo4j.org >>>> https://lists.neo4j.org/mailman/listinfo/user >>>> >>> >>> >>> &

Re: [Neo] Search Multiple Property Keys in LuceneIndexService

2010-01-18 Thread Mattias Persson
This can however be done using the "natural index" of the graph, in that you query for one property and for each hit you traverse the graph to see if the rest matches. That's more of a "graphy" thinking in my book. 2010/1/18 Mattias Persson : > Currently that&#

Re: [Neo] Infinite recursion bug in SimpleIndexHits.java (LuceneIndexService.getNodes)

2010-01-19 Thread Mattias Persson
/neo4j/util/index/SimpleIndexHits.java > > So no wonder there is a problem. > > Anybody else have this issue? > > Is anybody able to use the indexing component successfully? > > Thanks for your help. > > > > > Cheers, > Lach > ________

Re: [Neo] Graph linking in Neo4j- Is it possible?

2010-01-21 Thread Mattias Persson
> Neo mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > -- Mattias Persson, [matt...@neotechnology.com] Neo Technology, www.neotechnology.com ___ Neo mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user

Re: [Neo] LuceneIndexService

2010-01-21 Thread Mattias Persson
the index with the > Embedded neo mode? > In the batch mode we have the optimize() method in the BatchInserter ... > I have to do manually? > > best regards > Lorenzo > ___ > Neo mailing list > User@lists.neo4j.org > https://lists.

Re: [Neo] LuceneIndexService

2010-01-21 Thread Mattias Persson
ory because it could take a little bit to complete > > > On Thu, Jan 21, 2010 at 4:24 PM, Mattias Persson > wrote: >> Unfortunately you can't do it in the LuceneIndexService... but I'd >> guess that it could be exposed in some form, or that it could be >>

Re: [Neo] Infinite recursion bug in SimpleIndexHits

2010-01-22 Thread Mattias Persson
; Nathan Marz > Twitter: @nathanmarz > http://nathanmarz.com > ___ > Neo mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > -- Mattias Persson, [matt...@neotechnology.com] Neo Technology, www.neotec

Re: [Neo] Infinite recursion bug in SimpleIndexHits

2010-01-22 Thread Mattias Persson
o the life span of this bug is quite short. Hopefully it won't cause too much trouble along the way. 2010/1/22 Mattias Persson : > A simple fix is to use the IndexHits instance as an Iterable (as > opposed to an Iterator)... by doing that the problem goes away (it's > also ok to us

Re: [Neo] Mutliple embedded databases?

2010-01-22 Thread Mattias Persson
man/listinfo/user > > References > >   1. https://lists.neo4j.org/mailman/listinfo/user > ___ > Neo mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > -- Mattias Persson, [matt...@neotechnology.com] Neo Technology, www.neotechnology.com ___ Neo mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user

Re: [Neo] Minor inconsistency in shell behavior

2010-01-22 Thread Mattias Persson
ng, but a thing none the less. Agree? Keep up > the good work :) > > -David > ___ > Neo mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > -- Mattias Persson, [matt...@neotechnology.com] Neo Technology, www.neot

Re: [Neo] Return edges during a traversal

2010-01-23 Thread Mattias Persson
ng some data in edges that I need. > > -- > Nathan Marz > Twitter: @nathanmarz > http://nathanmarz.com > ___ > Neo mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > -- Mattias

Re: [Neo] Lucene full text indexing service: searching multiple node keys

2010-01-24 Thread Mattias Persson
ble? > -- > Regards, > Subhash Chandran S > > http://indiwiz.com/ > ___ > Neo mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > -- Mattias Persson, [matt...@neotechnology.com] Neo Techn

Re: [Neo] Lucene full text indexing service: searching multiple node keys

2010-01-26 Thread Mattias Persson
he code in front of me currently but I just wanted to mention >> that implementing and using such an approach wasn't too hard at all. >> >> best, >> Jonny >> >> On Mon, Jan 25, 2010 at 12:03 AM, Subhash Chandran wrote: >> >>> Thanks for lett

Re: [Neo] Cost limit option in Dijkstra Algorithm

2010-01-26 Thread Mattias Persson
ost of both traversals may exceed the limit while the > individual cost is still under limit. > > I have attached a patch with the added test that fails. > Also it would be great to rename the test sub-package from shortestPath to > shortestpath (same as the source package) because

Re: [Neo] Possible causes for: org.apache.lucene.index.MergePolicy$MergeException

2010-01-26 Thread Mattias Persson
xWriter.java:4192) >        at org.apache.lucene.index.IndexWriter.flush(IndexWriter.java:4183) >        at > org.apache.lucene.index.IndexWriter.closeInternal(IndexWriter.java:2190) >        at org.apache.lucene.index.IndexWriter.close(IndexWriter.java:2153) >        at org.apache.lucene.in

Re: [Neo] Possible causes for: org.apache.lucene.index.MergePolicy$MergeException

2010-01-27 Thread Mattias Persson
2010/1/26 Symeon (Akis) Papadopoulos : > Mattias Persson wrote: >> Ah, do you make sure you call IndexHits#close() on your results from >> getNodes(), alternatively iterating over the whole result (in which >> case it's automatically closed)? >> > Actually I&

Re: [Neo] Possible causes for: org.apache.lucene.index.MergePolicy$MergeException

2010-01-27 Thread Mattias Persson
actionImpl.java:102) >>>>>        at >>>>> org.neo4j.kernel.EmbeddedGraphDbImpl$TransactionImpl.finish(EmbeddedGraphDbImpl.java:316) >>>>>        ... 5 more >>>>> Caused by: java.io.IOException: directory '/[some-local-path]/resource_id' >>>>> exists and is a directory, but cannot be listed: list() returned null >>>>>        at >>>>> org.apache.lucene.store.FSDirectory.listAll(FSDirectory.java:516) >>>>>        at >>>>> org.apache.lucene.store.FSDirectory.listAll(FSDirectory.java:531) >>>>>        at >>>>> org.apache.lucene.index.IndexFileDeleter.refresh(IndexFileDeleter.java:307) >>>>>        at >>>>> org.apache.lucene.index.IndexWriter.doFlushInternal(IndexWriter.java:4300) >>>>>        at >>>>> org.apache.lucene.index.IndexWriter.doFlush(IndexWriter.java:4192) >>>>>        at org.apache.lucene.index.IndexWriter.flush(IndexWriter.java:4183) >>>>>        at >>>>> org.apache.lucene.index.IndexWriter.closeInternal(IndexWriter.java:2190) >>>>>        at org.apache.lucene.index.IndexWriter.close(IndexWriter.java:2153) >>>>>        at org.apache.lucene.index.IndexWriter.close(IndexWriter.java:2117) >>>>>        at >>>>> org.neo4j.index.lucene.LuceneDataSource.removeWriter(LuceneDataSource.java:409) >>>>>        ... 14 more >>>>> >>>>> >>>>> ___ >>>>> Neo mailing list >>>>> User@lists.neo4j.org >>>>> https://lists.neo4j.org/mailman/listinfo/user >>>>> >>>>> >>>>> >>>>> >>>> >>>> >>>> >>> ___ >>> Neo mailing list >>> User@lists.neo4j.org >>> https://lists.neo4j.org/mailman/listinfo/user >>> >>> >> >> >> >> > > ___ > Neo mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > -- Mattias Persson, [matt...@neotechnology.com] Neo Technology, www.neotechnology.com ___ Neo mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user

Re: [Neo] Neo4j RDF component download path missing?

2010-01-28 Thread Mattias Persson
her jar file or archive that i need to download? or is my >> imports wrong? >> >> any suggestion would be much appreciated >> >> -- >> >> Francis >> ___ >> Neo mailing list >> User@lists.neo4j.org >> https://lists.neo

Re: [Neo] Neo4j Transaction Handling in Gremlin

2010-01-28 Thread Mattias Persson
Thanks, >> Marko. >> >> http://markorodriguez.com >> http://tinkerpop.com >> >> ___ >> Neo mailing list >> User@lists.neo4j.org >> https://lists.neo4j.org/mailman/listinfo/user >> > > > > --

Re: [Neo] Relation properties

2010-01-28 Thread Mattias Persson
Relations? > The matter is I want to try Dijkstra algorithm performance on some weighted > directed graph and don't know where to put weight actually... > > -- > Best regards, > Popov Anton > ___ > Neo mailing list > User@list

Re: [Neo] Relation properties

2010-01-28 Thread Mattias Persson
Not at all, you're not the first one to overlook that inheritance! 2010/1/28, Anton Popov : > Thanks for a quick answer, Mattias. > > Sorry for a stupid questions, just haven't noticed the inheritance of > Relationship interface. > > On 28 January 2010 1

Re: [Neo] Possible causes for: org.apache.lucene.index.MergePolicy$MergeException

2010-01-28 Thread Mattias Persson
;at >>>>>>> org.neo4j.kernel.impl.transaction.TransactionImpl.doCommit(TransactionImpl.java:514) >>>>>>>at >>>>>>> org.neo4j.kernel.impl.transaction.TxManager.commit(TxManager.java:573) >>>>>>>at >>>>>>> org.neo4j.kernel.impl.transaction.TxManager.commit(TxManager.java:543) >>>>>>>at >>>>>>> org.neo4j.kernel.impl.transaction.TransactionImpl.commit(TransactionImpl.java:102) >>>>>>>at >>>>>>> org.neo4j.kernel.EmbeddedGraphDbImpl$TransactionImpl.finish(EmbeddedGraphDbImpl.java:316) >>>>>>>... 5 more >>>>>>> Caused by: java.io.IOException: directory >>>>>>> '/[some-local-path]/resource_id' >>>>>>> exists and is a directory, but cannot be listed: list() returned null >>>>>>>at >>>>>>> org.apache.lucene.store.FSDirectory.listAll(FSDirectory.java:516) >>>>>>>at >>>>>>> org.apache.lucene.store.FSDirectory.listAll(FSDirectory.java:531) >>>>>>>at >>>>>>> org.apache.lucene.index.IndexFileDeleter.refresh(IndexFileDeleter.java:307) >>>>>>>at >>>>>>> org.apache.lucene.index.IndexWriter.doFlushInternal(IndexWriter.java:4300) >>>>>>>at >>>>>>> org.apache.lucene.index.IndexWriter.doFlush(IndexWriter.java:4192) >>>>>>>at >>>>>>> org.apache.lucene.index.IndexWriter.flush(IndexWriter.java:4183) >>>>>>>at >>>>>>> org.apache.lucene.index.IndexWriter.closeInternal(IndexWriter.java:2190) >>>>>>>at >>>>>>> org.apache.lucene.index.IndexWriter.close(IndexWriter.java:2153) >>>>>>>at >>>>>>> org.apache.lucene.index.IndexWriter.close(IndexWriter.java:2117) >>>>>>>at >>>>>>> org.neo4j.index.lucene.LuceneDataSource.removeWriter(LuceneDataSource.java:409) >>>>>>>... 14 more >>>>>>> >>>>>>> >>>>>>> ___ >>>>>>> Neo mailing list >>>>>>> User@lists.neo4j.org >>>>>>> https://lists.neo4j.org/mailman/listinfo/user >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>> ___ >>>>> Neo mailing list >>>>> User@lists.neo4j.org >>>>> https://lists.neo4j.org/mailman/listinfo/user >>>>> >>>>> >>>>> >>>> >>>> >>>> >>> ___ >>> Neo mailing list >>> User@lists.neo4j.org >>> https://lists.neo4j.org/mailman/listinfo/user >>> >>> >> >> >> >> > > -- Mattias Persson, [matt...@neotechnology.com] Neo Technology, www.neotechnology.com ___ Neo mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user

Re: [Neo] Possible causes for: org.apache.lucene.index.MergePolicy$MergeException

2010-01-29 Thread Mattias Persson
ene.LuceneTransaction.doCommit(LuceneTransaction.java:197) >>>>>>>>        at >>>>>>>> org.neo4j.kernel.impl.transaction.xaframework.XaTransaction.commit(XaTransaction.java:316) >>>>>>>>        at >>>>>>>

Re: [Neo] Possible causes for: org.apache.lucene.index.MergePolicy$MergeException

2010-01-29 Thread Mattias Persson
"too many open files" issue. And I'm almost 100% sure that it will be resolved if you increase the span of your transactions. 2010/1/29 Mattias Persson : > I see that you're not using the Neo4j BatchInserter. Your use case > could definately benefit from it. Take a loo

Re: [Neo] Possible causes for: org.apache.lucene.index.MergePolicy$MergeException

2010-01-29 Thread Mattias Persson
(Sorry for spamming you guys) See http://wiki.neo4j.org/content/Transactions for general information about how to manage transactions in Neo4j. 2010/1/29 Mattias Persson : > Another problem I see is that you're having too granular transactions > which will slow down the insertion proc

Re: [Neo] Possible causes for: org.apache.lucene.index.MergePolicy$MergeException

2010-01-29 Thread Mattias Persson
2010/1/29 Symeon (Akis) Papadopoulos : > Mattias Persson wrote: >> Another problem I see is that you're having too granular transactions >> which will slow down the insertion process quite a bit. Try grouping a >> couple of thousands operations in one transaction and y

Re: [Neo] Relation properties

2010-01-29 Thread Mattias Persson
g node, String key, Object > value ) applies for Nodes only. > > 2010/1/28 Mattias Persson > >> Not at all, you're not the first one to overlook that inheritance! >> >> 2010/1/28, Anton Popov : >> > Thanks for a quick answer, Mattias. >>

Re: [Neo] Possible causes for: org.apache.lucene.index.MergePolicy$MergeException

2010-01-29 Thread Mattias Persson
hat's not necessary though. 2010/1/29 Mattias Persson : > 2010/1/29 Symeon (Akis) Papadopoulos : >> Mattias Persson wrote: >>> Another problem I see is that you're having too granular transactions >>> which will slow down the insertion process quite a bit. Try gro

Re: [Neo] Possible causes for: org.apache.lucene.index.MergePolicy$MergeException

2010-01-29 Thread Mattias Persson
of annoying in situations like this :) > > >> You could update to the latest neo4j-kernel as well, but maybe that's >> not necessary though. >> > We'll first try out to update just the neo-index. > If we face more problems we'll proceed with the kern

Re: [Neo] Possible causes for: org.apache.lucene.index.MergePolicy$MergeException

2010-01-29 Thread Mattias Persson
Now it's available at http://m2.neo4j.org/org/neo4j/neo4j-index/1.0-SNAPSHOT/neo4j-index-1.0-20100129.143758-4.jar 2010/1/29 Mattias Persson : > 2010/1/29 Symeon (Akis) Papadopoulos : >> >>> I just fixed the bug and your benchmarks run fine w/o any modification >>&g

Re: [Neo] Relation properties

2010-01-29 Thread Mattias Persson
way here on the mailing list if you asked! > > -- Forwarded message -- > From: Anton Popov > Date: 2010/1/29 > Subject: Re: [Neo] Relation properties > To: Neo user discussions > > > Hello Mattias, > > Got it. Thanks. > Is there any RoadMap

Re: [Neo] Lucene full text indexing service: searching multiple node keys

2010-01-31 Thread Mattias Persson
ed interface. >> >> Hope this is useful >> >> Jonny >> >> ___ >> Neo mailing list >> User@lists.neo4j.org >> https://lists.neo4j.org/mailman/listinfo/user >> >> > __

Re: [Neo] Question before I use neo4j, how to synchronize databases

2010-02-01 Thread Mattias Persson
_ >> Neo mailing list >> User@lists.neo4j.org >> https://lists.neo4j.org/mailman/listinfo/user >> > ___ > Neo mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > -- Mattias Persson, [matt...@neotechnology.com] Neo Technology, www.neotechnology.com ___ Neo mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user

Re: [Neo] Relation properties

2010-02-01 Thread Mattias Persson
y to set my own id'es for Relations? >> Only Nodes has such functionality - am I right? >> >> -- Forwarded message -- >> From: Anton Popov >> Date: 2010/1/29 >> Subject: Re: [Neo] Relation properties >> To: Neo user discussions >>

Re: [Neo] Correct maven dependency

2010-02-02 Thread Mattias Persson
> User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > -- Mattias Persson, [matt...@neotechnology.com] Neo Technology, www.neotechnology.com ___ Neo mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user

Re: [Neo] Neo In The Wild - Vizatweet

2010-02-02 Thread Mattias Persson
it out. >> >> http://www.vizatweet.com/ >> >> Matt >> ___ >> Neo mailing list >> User@lists.neo4j.org >> https://lists.neo4j.org/mailman/listinfo/user >> > _

Re: [Neo] Missing packages: org.neo4j.util.matching.* errors

2010-02-03 Thread Mattias Persson
____________ > Neo mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > -- Mattias Persson, [matt...@neotechnology.com] Neo Technology, www.neotechnology.com ___ Neo mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user

Re: [Neo] Missing packages: org.neo4j.util.matching.* errors

2010-02-03 Thread Mattias Persson
And also (regarding the UriBasedExecutor class) the "rdf" component is still called "rdf", but the maven artifact id is called "neo4j-rdf". Do you depend on the latest (and greatest) "neo4j-graph-matching" and "neo4j-rdf" components? 2010/2/3

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

2010-02-03 Thread Mattias Persson
it takes to commit the transaction in those 57ms? Would it be ok if you could post a piece of your code which handles this? > > Many thanks in advance, > > Best regards, > > Maria Giatsoglou > ___ > Neo mailing list

Re: [Neo] Can Neo4j read and process a rdf file?

2010-02-03 Thread Mattias Persson
e node-type query and processing. > > -- > > Francis > ___ > Neo mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > -- Mattias Persson, [matt...@neotechnology.com] Neo Technology, www.neotechnology.com __

Re: [Neo] graph-matching component

2010-02-05 Thread Mattias Persson
t;> Neo mailing list >> User@lists.neo4j.org >> https://lists.neo4j.org/mailman/listinfo/user >> > ___ > Neo mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > -- Mattias Persson, [matt...@neotechnology.com] Neo Technology, www.neotechnology.com ___ Neo mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user

Re: [Neo] Lucene full text indexing service: searching multiple node keys

2010-02-05 Thread Mattias Persson
Compass looks quite nice with its simplified lucene API and support for transactions, so it could might as well be a very good fit to have as an IndexService implementation. Your implementation hasn't got transaction support or am I wrong about that? 2010/1/31 Mattias Persson : > Yep

Re: [Neo] Lucene search in Shell?

2010-02-05 Thread Mattias Persson
r > Twitter      http://twitter.com/peterneubauer > > http://www.neo4j.org                - Relationships count. > http://gremlin.tinkerpop.com    - PageRank in 2 lines of code. > http://www.linkedprocess.org   - Computing at LinkedData scale. > > > > On Sun, Jan 3, 20

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

2010-02-06 Thread Mattias Persson
t >> org.neo4j.api.core.EmbeddedNeoImpl.(EmbeddedNeoImpl.java:68) >> >        at org.neo4j.api.core.EmbeddedNeo.(EmbeddedNeo.java:49) >> > >> > A workaround is to manually remove the transactions logs >> > >> > active_tx_log >> > tm_tx_lo

Re: [Neo] Porting to RC1 for algos?

2010-02-06 Thread Mattias Persson
to port to RC1 if we are trying to use graph-algos > or stay on the old stuff? > > Thanks > Todd > ___ > Neo mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > -- Mattias Persson, [

Re: [Neo] Porting to RC1 for algos?

2010-02-07 Thread Mattias Persson
ation errors scare you. :) > > Regards, > Todd > Excellent, that's the spirit! > > > On Sat, Feb 6, 2010 at 5:14 PM, Mattias Persson > wrote: >> which version are you using? If you're using maven then that component >> have changed name to (artifactId) neo4j-g

Re: [Neo] Database does not recover after unclean shutdown

2010-02-08 Thread Mattias Persson
420) > > > ___ > Neo mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > > > > ___ > Neo mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > -- Mattias Persson, [matt...@neotechnology.com] Neo Technology, www.neotechnology.com ___ Neo mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user

Re: [Neo] Node with the millions of incoming relationships "to" - is this a proper way ?

2010-02-08 Thread Mattias Persson
to define a property in every node, say "nodetype", with > the appropriate value for every node. > > First way seems to be more correct for me, but Im concerning that there > will be a millions of relations to a single node - is this OK for the > database performance and deficiency (mill

Re: [Neo] Node with the millions of incoming relationships "to" - is this a proper way ?

2010-02-08 Thread Mattias Persson
find that one relationship each time you request it and that node isn't present in the cache at the moment (since relationships aren't sorted on disk by type). That should probably be your only concern. > > Dmitri > > > Mattias Persson wrote: >> 2010/2/8 Rick Bullotta

Re: [Neo] Node with the millions of incoming relationships "to" - is this a proper way ?

2010-02-08 Thread Mattias Persson
find that one relationship each time you request it and that node isn't present in the cache at the moment (since relationships aren't sorted on disk by type). That should probably be your only concern. > > Dmitri > > > Mattias Persson wrote: >> 2010/2/8 Rick Bullotta

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

2010-02-09 Thread Mattias Persson
ips. >> >> Did I miss something or should we consider this a bug? >> >> Regards, >> Stefan >> ___ >> Neo mailing list >> User@lists.neo4j.org >> https://lists.neo4j.org/mailman/listinfo/user

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

2010-02-09 Thread Mattias Persson
t; 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 : >> Yep, that's right... The documentation is a bit unclear/untrue about >> that. Ryan is ri

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

2010-02-10 Thread Mattias Persson
ossible so that potential code bugs aren't hidden, but instead surfaces as early as possible. 2010/2/10 Mattias Persson : > I don't think that's a very good idea to have as a default behaviour > since potentially the entire graph is interconnected (and that it > isn't jus

Re: [Neo] Some newbie questions about indexing

2010-02-10 Thread Mattias Persson
for the node > Roolback the transaction > > Will the index be rolled back as well? Or do I have to manually remove > the index entry? > > Best regards, > Thomas > ___ > Neo mailing list > User@lists.neo4j.org > https://

Re: [Neo] deleting indexed nodes

2010-02-10 Thread Mattias Persson
ore using > indexservice.getNodes(), so I assume node.delete() also removes the > index entries. Can someone please confirm this? > > Regards & thx in advance, > Stefan > > > ___ > Neo mailing list > User@lists.neo4j.org >

Re: [Neo] Newbie IndexService question: How is equality defined between values in the index

2010-02-12 Thread Mattias Persson
> Any thoughts on this? > > Best Regards, > Thomas > ___ > Neo mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > -- Mattias Persson, [matt...@neotechnology.com] Neo Technology, www.neotechnology.com ___

Re: [Neo] deleting indexed nodes

2010-02-12 Thread Mattias Persson
better that the > IndexService uses the common shared interface PropertyContainer instead > of Node? What is the reason for this design decision? There has been a lot of requests for that and it's consider for inclusion in a future version. > > Regards, > Stefan > > Ma

Re: [Neo] Newbie IndexService question: How is equality defined between values in the index

2010-02-12 Thread Mattias Persson
tween comparing using equals > and toString(). > > Best regards, > Thomas > > On Fri, Feb 12, 2010 at 11:43 AM, Mattias Persson > wrote: >> Yep the answer is simple, it does a .toString() on the object and >> stores that string (since Lucene handles only strin

Re: [Neo] Error on startup

2010-02-12 Thread Mattias Persson
it is in > the WebApp's context listener. > > > > Any thoughts? > > > > Thanks, > > > > Rick > > > > ___________ > Neo mailing list > User@lists.neo4j.org > https://li

Re: [Neo] neo rdf

2010-02-17 Thread Mattias Persson
on in javadoc for VerboseQuadStrategy about that and they use the index key "uri" to index and lookup resource nodes. >> Thank you, >> Luda >> ___ >> Neo mailing list >> User@lists.neo4j.org >> https://lists.n

[Neo] Testing Neo4j recovery robustness

2010-02-18 Thread Mattias Persson
CPU cycles to spare and would like to participate and make Neo4j better consider running this test and hopefully improve it somehow... or even create more/other tests which could trigger problems regarding the robustness of Neo4j. -- Mattias Persson, [matt...@neotechnology.com]

Re: [Neo] REST API, newbie question

2010-02-19 Thread Mattias Persson
. > > > Thanks in advance! > > > > [1] http://blog.neo4j.org/2010/02/top-10-ways-to-get-to-know-neo4j.html > _______ > Neo mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > -- Mat

Re: [Neo] Choosing between a property or a node

2010-02-19 Thread Mattias Persson
I've included some first thoughts on how you could model this. The choice of properties/index vs. relationships is often quite obvious, but is some cases you'll have to try and see which fits best. But neo4j encourages you to create relationships if you're in doubt and it's often better to use more

Re: [Neo] Choosing between a property or a node

2010-02-19 Thread Mattias Persson
> Class relationship and Student > Class relationship). Did I understand you correct? > > > >   Rick > > > >   ---- Original Message >   Subject: Re: [Neo] Choosing between a property or a node >   From: Mattias Persson >   Date: Fri, Fe

Re: [Neo] Newbie: neo4j doubts

2010-02-19 Thread Mattias Persson
relationship) ids are internal and you could rely on an IndexService (see http://components.neo4j.org/neo4j-index/) for lookups about other properties, f.ex. "uri" or "username" or such. > > > Thanks, > Sunil > > -- > Sr. Software Architect > Center of Exce

Re: [Neo] Choosing between a property or a node

2010-02-19 Thread Mattias Persson
2010/2/19 Jeremy Day : > Mattias, > > Could you do something like Student --> Autumn 2009 --> Math A ?  You could > then easily also have Teacher --> Autumn 2009 --> Math A. Absolutely, that could definately work as a model. > > Jeremy > > On Fri, Feb 19, 2010

Re: [Neo] REST API, newbie question

2010-02-19 Thread Mattias Persson
ncato : > Thanks Mattias! It worked like a charm!! > > When I tried before, I never configured maven to search in neo4j's > repositories. > > Thanks a lot   :-) > > > > 2010/2/19 Mattias Persson : >> Great to hear! >> >> So, if we try to take java o

Re: [Neo] first test

2010-02-21 Thread Mattias Persson
>> I think the limitation is more related to the size of the transaction. >> Less transactions = faster inserts = more memory >> Just a guess though, not sure what your code looks like. >> We have been able to import millions of nodes with small heaps committing >> in >> small batches. Yep, that's

Re: [Neo] Estrange exception when running multithreaded

2010-02-22 Thread Mattias Persson
ve not seen this until we have upgraded to > the latest version. > > Thanks in advance! > > Raul > _______ > Neo mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > -- Mattias Persson, [matt...@neotechnology.co

Re: [Neo] Java outof 64 GB ram

2010-02-23 Thread Mattias Persson
"+(String)idNodeMaxDegree.getProperty("ID_TITLE")); >            System.out.println("Title = > "+(String)idNodeMaxDegree.getProperty("NAME")); >            System.out.println("#refs = "+maxDegree);

Re: [Neo] Java outof 64 GB ram

2010-02-23 Thread Mattias Persson
/23 Mattias Persson : > I see that you're using an older version of Neo4j. Have you tried using 1.0? > > http://components.neo4j.org/neo4j-kernel > http://neo4j.org/download > > Maven > groupId: org.neo4j > artifactId: neo4j-kernel > version: 1.0 > > ...and

Re: [Neo] Transaction/Exception question

2010-02-24 Thread Mattias Persson
#x27;m too tired to figure out what should > be an easy exception handling scenario. > > > > Thanks > > > > Rick > > > > ___ > Neo mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > -- Mattias Persson, [matt...@neotechnology.com] Neo Technology, www.neotechnology.com ___ Neo mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user

Re: [Neo] Managing nodes with same values for a property

2010-02-24 Thread Mattias Persson
2010/2/24 Sumanth Thikka : > Hi Mario, > > Thanks for your reply. > > My requirement is to avoid duplicates. For that, do we need to find the > nodes with the same value and avoid inserting, as it is mentioned or any > alternative(optimized) ways known to do this? The best way is probably to use an

Re: [Neo] Transaction/Exception question

2010-02-24 Thread Mattias Persson
2010/2/24 Rick Bullotta : > Anyone? Rick, did you get my answer? If not I could post it again / Mattias ___ Neo mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user

Re: [Neo] Transaction/Exception question

2010-02-24 Thread Mattias Persson
Just to clarify, no need to call tx.success() if my transaction is read > only, correct? Well... technically no, but there's no benefit in leaving out tx.succes() > -- Mattias Persson, [matt...@neotechnology.com] Neo Technology, www.neotechnology.com _

Re: [Neo] No indexing capabilities on the classpath

2010-02-25 Thread Mattias Persson
The "index" command is quite new and not very tested or polished so please come back with feeback if there's something you feel could be improved! 2010/2/25 Gutemberg Vieira : > Ok Mattias, > > Thank you! Now, it works. > > -- > Gutemberg > > On Thu, F

Re: [Neo] No indexing capabilities on the classpath

2010-02-25 Thread Mattias Persson
re it out! > > -- > Gutemberg > ___________ > Neo mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > -- Mattias Persson, [matt...@neotechnology.com] Neo Technology, www.neotechnology.com ___ Neo mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user

Re: [Neo] Estrange exception when running multithreaded

2010-02-26 Thread Mattias Persson
Transaction tx = neoService.beginTx(); try { result = invocation.proceed(); tx.success(); return result; } catch (DeadlockDetectedException e) { log.debug("deadlock detected for invocation " + invocation

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

2010-02-26 Thread Mattias Persson
really go away. In most cases you can just have a MyFileUtils.deleteDirectory( "my/neo4j-db" ) before instantiating your EmbeddedGraphDatabase instance, but that's probably what you're trying to get away from :) ? -- Mattias Persson, [matt...@neotechnology.com] Neo Technology, www.neotechnology.com

<    1   2   3   4   5   6   7   8   9   10   >