i followed your advice and it is now fairly good
but i have a new performance issue with traversing i have this line of code
Traverser travser = result.traverse(Traverser.Order.DEPTH_FIRST,
StopEvaluator.END_OF_GRAPH, ReturnableEvaluator.ALL,
DynamicRelationshipType.withName(name),
How large is your graph?
And how many connections do those nodes have?
Thanks
Michael
Am 12.08.2011 um 01:50 schrieb ahmed.elsharkasy:
i followed your advice and it is now fairly good
but i have a new performance issue with traversing i have this line of code
Traverser travser
My graph contains 281 nodes with a total of 350 relationships . average
outgoing edges per node less than 10 and the same for in going edges
what do you think?
--
View this message in context:
Is this the first traversal, or the average time for several runs?
Thanks
Michael
Am 12.08.2011 um 02:55 schrieb ahmed.elsharkasy:
My graph contains 281 nodes with a total of 350 relationships . average
outgoing edges per node less than 10 and the same for in going edges
what do you
I just created a graph like yours and run the traversal test, it takes a few
milliseconds for the initial runs but with hot caches it executes almost
instantly.
Michael
node count = 952 took 72 ms
node count = 963 took 29 ms
node count = 957 took 39 ms
node count = 973 took 29 ms
node count =
i knew now what swallows the time , it is graphdb.shutdown i am calling after
the travsersal , it took 500 millisecond to shutdown the db ??!!!
--
View this message in context:
http://neo4j-community-discussions.438527.n3.nabble.com/cant-use-index-after-commit-tp3233038p3247993.html
Sent from
This is system related or an issue in neo4j ?
--
View this message in context:
http://neo4j-community-discussions.438527.n3.nabble.com/cant-use-index-after-commit-tp3233038p3248019.html
Sent from the Neo4j Community Discussions mailing list archive at Nabble.com.
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
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
i am running on Ubuntu 11.04 , neo4j advanced-1.4 and i use only one thread
but i use nested transaction i.e there is an outer transaction beside the
transaction shown in the code , any problems with that?
i tried reversing the order but still the same problem
--
View this message in context:
is the that the commit of the outer tx where it fails?
and do you finish the outer tx sucessfully?
does it work with a single transaction?
Cheers
Michael
Am 08.08.2011 um 09:01 schrieb ahmed.elsharkasy:
i am running on Ubuntu 11.04 , neo4j advanced-1.4 and i use only one thread
but i use
Ahmed,
I tried it both on MacOS and Ubuntu with the following example and it worked
fine.
public class Test {
public static void main(String[] args) throws IOException {
final ImpermanentGraphDatabase graphDb = new ImpermanentGraphDatabase();
try {
is their any problem if my logic needs to shutdown the graph before the inner
transaction and start it again directly before it?
--
View this message in context:
http://neo4j-community-discussions.438527.n3.nabble.com/cant-use-index-after-commit-tp3233038p3234930.html
Sent from the Neo4j
finally i solved the problem :)
The problem was that i my logic before the node deletion , i used the
batchInserterIndex and IndexProviders Objects and when i shutdown them and
start a graph database instance , i only shut down the inserter and forgot
to shutdown the provider
Thanks a lot for
Why would you want to do that?
You should shutdown the graphdb only at the end of your program.
Michael
Am 08.08.2011 um 10:38 schrieb ahmed.elsharkasy:
is their any problem if my logic needs to shutdown the graph before the inner
transaction and start it again directly before it?
--
i mean the graphdatabaseService , how can i keep it open while opening a
batchInserter instance? i think i cant access the store with both of them at
the same time
--
View this message in context:
ok, you can't use them both in one go that's right.
so after shutting down the batch-inserter-index-provider and the batch-inserter
you can use the embedded API on the same store.
That's also how Neo4j-Spatial does it's two step import of openstreetmap data.
First bulk load the data and then
what will save me from doing so is if there is a way to batch find a group of
words in one time using java instead of iterating through words and
searching for one by one
--
View this message in context:
You can use the lucene query API to do that (see
http://lucene.apache.org/java/2_4_0/queryparsersyntax.html#Fields)
nodeIndex.query(name: word1 OR name:word2 OR name: word3);
If that is what you mean by batch finding a group of words
Michael
Am 08.08.2011 um 12:54 schrieb 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:
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
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
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
Give 1.4.1 a try.
On Aug 7, 2011, at 10:36 AM, ahmed.elsharkasy ahmed.elshark...@gmail.com
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
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
ahmed.elshark...@gmail.com wrote:
Are you sure no other reason?
--
View this message in context:
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 a
26 matches
Mail list logo