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
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
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
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
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
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
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
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
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
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
10 matches
Mail list logo