Anyone knows about it? How to use the MVCC mode?
On Fri, May 13, 2011 at 5:25 PM, Grass <[email protected]> wrote: > I'm trying to using MVCC mode. but i found when i did the update using > JdbcPreparedStatement, it synced the database object: > > Command.executeUpdate(){ > ... > Database database = session.getDatabase(); > Object sync = database.isMultiThreaded() ? (Object) session : (Object) > database; > ... > synchronized (sync) { > > ... > } > > Then, even if inside, it used a share lock in table level for "delete, > insert and update", it still can not support multi-threads to do > update/insert. Does it make sense? Or how can I use multi-threads to > do update at same time under MVCC mode? > > thanks. > > > -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/h2-database?hl=en.
