On 02/13/2011 07:18 PM, Massimo Lusetti wrote:
> Hi all,
>    Does the inner Lucene index commit toghether with the Transaction
> success()/finish() cycle?
>
> I mean if I start a Transaction and do like
> http://wiki.neo4j.org/content/Transactions#Big_transactions I suppose
> I'm guarantee the Lucene index is synched to disk as soon as the
> Transaction finish(), right?

Hi Massimo,

your understanding is correct. The lucene index is exposed as a 
XAResource that participates in the global transaction that is started 
with graphDb.beginTx() and committed on successful tx.finish(). The 
commit (or rollback) happens through a 2PC which ensures that it is 
treated as an atomic operation.

The info on Big Transactions is essentially just a workaround for 
avoiding running out of memory, so the principle as I outlined it above 
still holds.

cheers,
CG
_______________________________________________
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to