Re: [Neo4j] cant use index after commit

2011-08-07 Thread Michael Hunger
What operating system are you running on, which version of neo4j and how many threads are running in parallel? Could you also try to reverse the operations (i.e. first do the index.remove() and then then node.delete();) Thanks Michael Am 08.08.2011 um 08:13 schrieb ahmed.elsharkasy: > i am s

Re: [Neo4j] is there a limit to how much data rest batch can take?

2011-08-07 Thread Michael Hunger
Could you please have a look at data/graph.db/messages.log and data/log/*.log if there are more detailed stack-traces about this error (esp. more "caused by"). Thanks Michael Am 08.08.2011 um 05:09 schrieb Boris Kizelshteyn: > I should add that I can insert the same calls one by one without e

Re: [Neo4j] Easy to switch from Embedded to HighAvailability graph?

2011-08-07 Thread Andreas Kollegger
Hi Raffi, That's a very sensible approach to scaling up the capacity of your system. Because you are embedding Neo4j, you can simply switch to using HighAvailabilityGraphDatabase instead of EmbeddedGraphDatabase, as described here: http://wiki.neo4j.org/content/High_Availability_Cluster You wi

Re: [Neo4j] cant use index after commit

2011-08-07 Thread ahmed.elsharkasy
i am still facing the same exception when i try to delete a node with this code Transaction tx = graphDb.beginTx(); node.delete(); graphDb.index().forNodes(wordsIndexName).remove(node); tx.success(); tx.finish() i get this exception at tx.finish SEVERE: Commit failed java.lang.RuntimeExceptio

[Neo4j] Indices missing on database copy

2011-08-07 Thread WBT
By the way, thanks to Michael and "T." noppanit for your quick replies! Grace and peace, WBT ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user

[Neo4j] sub-graphs

2011-08-07 Thread Niels Hoogeveen
While I am at it, let's post another brain dump. A couple of weeks ago, I worked on SortedTree/IndexRelationships in an attempt to solve the densely-connected-node-problem. SortedTree is a Btree layed-out in the graph, sorted by some function on a node (eg. the nodeId, or a property value).

Re: [Neo4j] is there a limit to how much data rest batch can take?

2011-08-07 Thread Boris Kizelshteyn
I should add that I can insert the same calls one by one without error. What could it be? On Sun, Aug 7, 2011 at 8:31 PM, Boris Kizelshteyn wrote: > I'm getting a weird error when batching a large dataset (about 200 calls), > it's below. Any thoughts? Many thanks! > > >- 500 Unable to commit

[Neo4j] is there a limit to how much data rest batch can take?

2011-08-07 Thread Boris Kizelshteyn
I'm getting a weird error when batching a large dataset (about 200 calls), it's below. Any thoughts? Many thanks! - 500 Unable to commit transaction - ==> - ==> - ==> - ==> Error 500 Unable to commit transaction - ==> - ==> HTTP ERROR 500 - ==> Problem accessing /db

Re: [Neo4j] Node#getRelationshipTypes

2011-08-07 Thread Niels Hoogeveen
Yes, let's not argue about something as elusive as the definition of "low hanging fruit". In the mean time I wrote down my suggestions for store refactoring more succinctly and added some more suggestions. Niels > Date: Sun, 7 Aug 2011 22:09:48 +0200 > From: matt...@neotechnology.com > To: user

[Neo4j] Store refactoring suggestions

2011-08-07 Thread Niels Hoogeveen
Over the last couple of weeks, I have been working on an Enhanced API for Neo4j, and would like to make some suggestions on how some changes to the store layout can improve Neo4j and make the implementation of the Enhanced API simpler and more transparent. Let me start with a definition of a r

Re: [Neo4j] Neo4j Licensing

2011-08-07 Thread Charles Bedon
Hello "If you use HA then your code also needs to be open source" Well, more than "open source", your code has to be GPL-compatible - Charles Edward Bedón Cortázar ITIL Foundation Certified Open Source Network Inventory for the masses! http://kuwaiba.sourcef

Re: [Neo4j] neo4j spatial via rest, weird error

2011-08-07 Thread Michael Hunger
Probably one of the gemoetry attributes was just (for instance 0) so that it got encoded as a property with an integer type not a "double" as expected. Probably the SimplePointEncoder should be a bit more forgiving and use Number.doubleValue() on the actual value it gets back. so changing decod

[Neo4j] neo4j spatial via rest, weird error

2011-08-07 Thread Boris Kizelshteyn
When one of my nodes is selected by a findgeometriesinlayer query the plugin throws the following error. I can't tell what's different about this node. Any ideas where I should look? BTW, I tried to remove the relationship to the rtree index and then re-attach, but that doesn't help. Other nodes co

Re: [Neo4j] Node#getRelationshipTypes

2011-08-07 Thread Mattias Persson
2011/8/6 Niels Hoogeveen > > This is the thread about store layer changes for type/direction, and in my > opinion this is still quite low hanging fruit. Sure, the impact needs to be > tested rigorously, which may take considerable time, but the implementation > is quite straight-forward and the p

Re: [Neo4j] Neo4j Licensing

2011-08-07 Thread Peter Neubauer
Manav, Also, contact me for a good startup - commercial setup. We are not in the business of stripping startups bare, so I am sure we can work it out :) /peter Sent from my phone. On Aug 7, 2011 7:19 PM, "Jim Webber" wrote: > Hello Manav, > > I am not a lawyer, so what follows here is an opinion

Re: [Neo4j] Problem with datastore

2011-08-07 Thread Michael Hunger
If you have indexed the node before (in the batch-inserter) then you might later use the index (with the same name) to retrieve the node and delete it. You can also reach that node later by knowing its id or by traversing to it via intermediate relationships. Batch insertion is faster because i

Re: [Neo4j] cant use index after commit

2011-08-07 Thread ahmed.elsharkasy
Thanks i got this point now -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/cant-use-index-after-commit-tp3233038p3233530.html Sent from the Neo4j Community Discussions mailing list archive at Nabble.com. ___ Neo

Re: [Neo4j] Problem with datastore

2011-08-07 Thread ahmed.elsharkasy
ohhh yes i got this point now but i have a last question in my problem if i want to delete a node , i must get the index to this node first and then access the node , in this case i should also use the normal graph database index not the batch one? i tried this but i found that the batch index are

Re: [Neo4j] Unique Constaint on Index

2011-08-07 Thread Michael Hunger
Yeah it is the same code, locks are held across the cluster. An explicit locking API will make it in one of the future versions of Neo4j, it has not been decided when that will happen. Cheers Michael Am 07.08.2011 um 19:20 schrieb etc1: > I see, that makes sense, ty > Does this code work the

Re: [Neo4j] cant use index after commit

2011-08-07 Thread Michael Hunger
Ahmed, please make sure not to mix BatchInserter and the normal API in the same program. Batch-Inserter does not support removal of nodes and relationships. Cheers Michael Am 07.08.2011 um 18:22 schrieb Chris Gioran: > Hi Ahmed, > > if you are still having trouble, could you please provide

Re: [Neo4j] Unique Constaint on Index

2011-08-07 Thread etc1
I see, that makes sense, ty Does this code work the same for embedded single node and cluster high availability graph db's? -Original Message- From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On Behalf Of Michael Hunger Sent: Sunday, August 07, 2011 1:04 PM To: Ne

Re: [Neo4j] Neo4j Licensing

2011-08-07 Thread Jim Webber
Hello Manav, I am not a lawyer, so what follows here is an opinion. > My question is pretty simple. I am creating a website which uses neo4j > as its database. Now if I want high availability and monitoring for my db , > do I need commercial license ? or Agpl3 will be fine with my use case.

Re: [Neo4j] Unique Constaint on Index

2011-08-07 Thread Michael Hunger
Just from my head. tx = graphdb.beginTransaction(); try { Node lockNode = graphdb.getReferenceNode(); // or another node that is used for locking this unique index lockNode.removeProperty("__non_existent_property__"); index=graphdb.index().forNodes("unique-name"); Node user = index.ge

Re: [Neo4j] Problem with datastore

2011-08-07 Thread Michael Hunger
Ahmed, you have to differentiate between using BatchInserter which is intented for: * fast insertion of large bulks of data (millions or billions of nodes and relationships) * has to run in a single thread without transactions * has to be correctly shut-down to leave a consistent state of the da

Re: [Neo4j] cant use index after commit

2011-08-07 Thread Chris Gioran
Hi Ahmed, if you are still having trouble, could you please provide a bare bones test case that reliably reproduces the problem? cheers, CG On Sun, Aug 7, 2011 at 6:56 PM, ahmed.elsharkasy wrote: > Are you sure no other reason? > > -- > View this message in context: > http://neo4j-community-di

Re: [Neo4j] cant use index after commit

2011-08-07 Thread ahmed.elsharkasy
Are you sure no other reason? -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/cant-use-index-after-commit-tp3233038p3233302.html Sent from the Neo4j Community Discussions mailing list archive at Nabble.com. ___ N

[Neo4j] Easy to switch from Embedded to HighAvailability graph?

2011-08-07 Thread etc1
We want to start small with neo4j, so a single server with Tomcat with an instance of neo4j EmbeddedGraph db is sufficient for our needs. However, if we need to increase system capacity in the future by moving to a clustered architecture using HighAvailabilityGraphDB, how easy is the switch? I unde

Re: [Neo4j] Unique Constaint on Index

2011-08-07 Thread etc1
Not sure I understand this: A consistent, but hackish, attempt to acquire a cluster-wide lock is to remove a non-existent node; what does this mean, exactly; code sample? -Original Message- From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On Behalf Of etc3 Sent: Th

Re: [Neo4j] cant use index after commit

2011-08-07 Thread Rick Bullotta
Give 1.4.1 a try. On Aug 7, 2011, at 10:36 AM, "ahmed.elsharkasy" wrote: > 1.4 > > -- > View this message in context: > http://neo4j-community-discussions.438527.n3.nabble.com/cant-use-index-after-commit-tp3233038p3233172.html > Sent from the Neo4j Community Discussions mailing list archive

Re: [Neo4j] Problem with datastore

2011-08-07 Thread ahmed.elsharkasy
Transaction tx2 = graphDb.beginTx(); node.delete(); graphDb.index().forNodes(wordsIndexName).remove(node); tx2.success(); although i am having a batch inserter index and i want to use it to delete the node and remove it from the batch index but i could not so i used the normal operations could you

Re: [Neo4j] cant use index after commit

2011-08-07 Thread ahmed.elsharkasy
1.4 -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/cant-use-index-after-commit-tp3233038p3233172.html Sent from the Neo4j Community Discussions mailing list archive at Nabble.com. ___ Neo4j mailing list User@li

Re: [Neo4j] Enhanced API rewrite

2011-08-07 Thread Niels Hoogeveen
Hi Peter, Thanks for showing an interest. A Property is indeed a unary edge in the Enhanced API and therefore (potentially) backed by a Node, but that Node doesn't contain the value. All property values are still stored the way they are stored in the standard API. If someone however decides

Re: [Neo4j] cant use index after commit

2011-08-07 Thread Rick Bullotta
Which version? 1.4 or 1.4.1? From: user-boun...@lists.neo4j.org [user-boun...@lists.neo4j.org] On Behalf Of ahmed.elsharkasy [ahmed.elshark...@gmail.com] Sent: Sunday, August 07, 2011 8:42 AM To: user@lists.neo4j.org Subject: [Neo4j] cant use index after

Re: [Neo4j] Problem with datastore

2011-08-07 Thread Peter Neubauer
Ahmed, Could we take a look at your code somewhere so we can see what things look like? /peter Sent from my phone. On Aug 7, 2011 3:02 PM, "ahmed.elsharkasy" wrote: > but when i used method Node.delete() to delete the node , it throws an > exception until i added the transaction > how can i dele

Re: [Neo4j] Problem with datastore

2011-08-07 Thread ahmed.elsharkasy
but when i used method Node.delete() to delete the node , it throws an exception until i added the transaction how can i delete a node or a relationship with batch operations without transactions? -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/Problem-wit

Re: [Neo4j] cant use index after commit

2011-08-07 Thread ahmed.elsharkasy
i am having this exception thrown in tx.finish , this means that the commit is not made but i dont know why -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/cant-use-index-after-commit-tp3233038p3233067.html Sent from the Neo4j Community Discussions mailing

Re: [Neo4j] Problem with datastore

2011-08-07 Thread Peter Neubauer
Ahmed, The BatchInserter us totally without transactions and only good for one thread. You need to use the normal transactional database API to run in normal production. /peter Sent from my phone. On Aug 7, 2011 2:36 PM, "ahmed.elsharkasy" wrote: > Yes thanks a lot this saves the problem regardi

Re: [Neo4j] cant use index after commit

2011-08-07 Thread noppanit
It might be that you didn't shutdown the database? So the lock's still locked? Sent from my BlackBerry® wireless device -Original Message- From: "ahmed.elsharkasy [via Neo4j Community Discussions]" Date: Sun, 7 Aug 2011 05:42:33 To: noppanit Subject: cant use index after commit i del

[Neo4j] cant use index after commit

2011-08-07 Thread ahmed.elsharkasy
i deleted some nodes and committed and was successfuly deleted but in the same run i tried to start my batch index again and i faced this exception Exception in thread "main" java.lang.RuntimeException: org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: nativefsl...@write

Re: [Neo4j] Problem with datastore

2011-08-07 Thread ahmed.elsharkasy
Yes thanks a lot this saves the problem regarding getNodeById but what about having to get the graph database service to start a transaction or to commit? can i do the same with out having to initiate a graph database service instance? -- View this message in context: http://neo4j-community-discu

[Neo4j] Neo4j Licensing

2011-08-07 Thread Manav Goel
Hi After reading Agpl license again, I am still not able to understand it! My question is pretty simple. I am creating a website which uses neo4j as its database. Now if I want high availability and monitoring for my db , do I need commercial license ? or Agpl3 will be fine with my us

Re: [Neo4j] Problem with datastore

2011-08-07 Thread Peter Neubauer
Hi Ahmed, the Batchinserter system is working with Longs instead of nodes - otherwise you should be able to do much the same as in the normal API, see http://components.neo4j.org/neo4j/1.4.1/apidocs/org/neo4j/graphdb/index/BatchInserterIndex.html for getting a nodeId from the BatchInserterIndex, a

[Neo4j] Problem with datastore

2011-08-07 Thread ahmed.elsharkasy
I have a problem , i am using BatchInserterIndex and during my work sometimes i need to use the method getNodeById in graph database service and as i cant open two instances on the same datastore i had to shutdown the index first and open an instance of graph database service and then shutdown it a

Re: [Neo4j] Enhanced API rewrite

2011-08-07 Thread Peter Neubauer
Niels, this sounds very interesting. Given the role of properties being unary edges, that would mean that any classic Neo4j property would now be a Node with one Property in the new Vertex sense? Having Vertices for EVERYTHING will of course make the node-implementation much more important than an