Hi,

Sorry for the delay.

Using one TransactionStore is OK. This is what the SQL database is doing as
well.

Sharing the MVMap for multiple threads is OK, even thought it might not be
what you want, because you don't have a snapshot view of the data. With the
TransactionStore, maps are not shared.

Regards,
Thomas


On Wednesday, December 9, 2015, Ryan Waters <[email protected]> wrote:

> I'm starting to use H2 (with clojure) and have two questions:
>
> 1) Regarding TransactionStore, is it recommended/ok to create a single
> instance of TransactionStore for the life of the application and then a new
> Transaction instance per transaction or should TransactionStore be used
> differently.
>
> 2) if I have one thread that writes and many threads that read, is it ok
> to use a single instance of MVMap (per map) and share that across all
> threads?
>
> My apologies if this information is out there and I just didn't find it.
> Thank you.
>
> - Ryan
>
> --
> You received this message because you are subscribed to the Google Groups
> "H2 Database" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected]
> <javascript:_e(%7B%7D,'cvml','h2-database%[email protected]');>
> .
> To post to this group, send email to [email protected]
> <javascript:_e(%7B%7D,'cvml','[email protected]');>.
> Visit this group at http://groups.google.com/group/h2-database.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.

Reply via email to