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 database
* uses longs to address nodes and relationships
* doesn't support removal of nodes and rels

And the normal transactional API which is used for normal production, test and 
development:

* uses the Node and Relationship objects
* uses transactions
* is thread safe
* allows all mutating operations

You MUST NOT mix them. In one program there is only either or.

So for your bulk-insertion program you would use BatchInserter and 
BatchInsertionIndexProvider

And for your normal usage (after you've imported your _large_ dataset) you'd 
use EmbeddedGraphDbService and Nodes, Relationships and Transactions.

HTH

Michael

Am 07.08.2011 um 16:38 schrieb 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 guide me how could i do the same above functionality using batch
> index ?
> 
> --
> View this message in context: 
> http://neo4j-community-discussions.438527.n3.nabble.com/Problem-with-datastore-tp3232799p3233173.html
> Sent from the Neo4j Community Discussions mailing list archive at Nabble.com.
> _______________________________________________
> Neo4j mailing list
> [email protected]
> https://lists.neo4j.org/mailman/listinfo/user

_______________________________________________
Neo4j mailing list
[email protected]
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to