Hi, exactly. You can use the same storage by multiple threads just each thread must have own OrientGraph instance.
Lvc@
Using this pattern, i.e. embedded local, what is the best strategy
regarding transaction times. Is it ok to have long running transactions,
or should the transaction be kept as short as possible, similar to
jdbc.
In JPA we normally had short transactions but kept the session open for
longer periods (i.e. Extended Persistence Context) of time as it
provides caching of already read entities.
So, can one in a conversation (eg. web wizard) use the same graph
instance committing often or not as required but not having to
reinstantiate a Graph instance for every request?
Hope it makes sense.
Thanks
Pieter