Lorenzo Conti
unread,May 24, 2012, 7:03:47 AM5/24/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to OrientDB, d.deb...@gmail.com
Ciao Luca,
we're studying the features of OrientDB and I have a question:
which is the best practice, if exists, to manage transactions?
I ask you because we're trying to insert 1000 vertexes ,linking them
together like a chain (first linked to second, second to third
etc...), inside a single transaction but, when we commit we get
StackOverflowError.
A friend of us, that knows very well OrientDB, has suggested to commit
every n insert (where n in our case is 100).
Doing that, it works perfectly but the whole process is not anymore a
transaction (if I get an error inserting the 430th vertex, the latter
30 vertexes will be rollbacked, but the first 400 will remain..).
For example if I have to "add all" a set of friends, I need to be sure
that the whole operation (all the 1000 friends) has been done or not.
Is there a possibility to set the dimension of a transaction?
Thanks for your help
Lorenzo