Clarification about transactional usage

6 views
Skip to first unread message

Sergio Bossa

unread,
Jul 12, 2010, 8:31:19 AM7/12/10
to hawtdb
Hi,

it seems that in order to execute several transactions over the same
index you have to create several transaction objects from the page
file (tx method) and open a new index for each transaction (open
method on index factory): is that correct?

--
Sergio Bossa
http://www.linkedin.com/in/sergiob

Hiram Chirino

unread,
Jul 12, 2010, 8:45:50 AM7/12/10
to haw...@googlegroups.com
On Mon, Jul 12, 2010 at 8:31 AM, Sergio Bossa <sergio...@gmail.com> wrote:
> Hi,
>
> it seems that in order to execute several transactions over the same
> index you have to create several transaction objects from the page
> file (tx method) and open a new index for each transaction (open
> method on index factory): is that correct?

Yes. Although once a transaction is committed or rolled back, it can
be reused, but you still need to re-open the the index. Once a tx
starts an operation against the page file, the tx locks on to a
snapshot view of the page file, and the index is opened on that view.

--
Regards,
Hiram

Blog: http://hiramchirino.com

Open Source SOA
http://fusesource.com/

Reply all
Reply to author
Forward
0 new messages