[h2] Re: how to trigger serialization of data objects contained in MVStore Collections

2019-04-03 Thread Michael Wu
I see. I am actually exploring the possibility to use MVStore to store networked data (data graphs). Thanks for your input. I will think about using multiple MVMap's together to store the data. I think I need to at least have a MVMap to keep all of the data objects which need to be

[h2] Re: how to trigger serialization of data objects contained in MVStore Collections

2019-04-02 Thread Michael Wu
ta objects will be serialized again although there is only one object is modified. Can anyone advise the right way to trigger serialization for only those modified? Michael Wu於 2019年4月2日星期二 UTC+8上午9時35分32秒寫道: > > Hi, > I am trying MVStore for storing & managing a large number of Java

[h2] how to trigger serialization of data objects contained in MVStore Collections

2019-04-01 Thread Michael Wu
Hi, I am trying MVStore for storing & managing a large number of Java serializable objects. I develop a simple Java program. It uses a HashMap to keep a number of UserData Java objects. mvs = MVStore.open(".\\test.h2mvs"); mvs.setAutoCommitDelay(10); data_store =

[h2] org.h2.jdbc.JdbcSQLException: Connection is broken: "java.net.BindException: Address already in use: connect: localhost:8092" [90067-196]

2018-02-20 Thread Michael Wu
at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:100) at org.h2.Driver.connect(Driver.java:69) at java.sql.DriverManager.getConnection(Unknown Source) Before the exception occurs, the statement works as expected several thousand times. Any idea about the cause of the problem? Any help will

[h2] what's the difference of MVStore's default file storage and OffHeapStore

2017-06-20 Thread Michael Wu
of useing OffHeapStore over the default storage? I am confused. Can anyone help? Thanks in advance! Michael Wu -- 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 em

Re: [h2] Why MVMap's public V get(Object key) is not synchronized

2017-06-09 Thread Michael Wu
Hi, I didn't notice that MVMap implements ConcurrentMap. Now, I feel confident to use it. Actually, I think the MVStore library is useful in many use cases. Appreciate your help! Michael Wu Thomas Mueller Graf於 2017年6月10日星期六 UTC+8上午12時08分46秒寫道: > > Hi, > > The get method is

[h2] Why MVMap's public V get(Object key) is not synchronized

2017-06-09 Thread Michael Wu
Hi, I am learning to use the MVMap class. I read the source code and found that the following methods are all synchronized except the get(...) method: public synchronized V put(K key, V value) public synchronized void clear() public synchronized V putIfAbsent(K key, V value) public synchronized