Advise database (pure Java, Schema, less embedded, in memory)

0 like 0 dislike
9 views
Please advise: pure Java, Schema, less embedded, in memory database.
To use as a cache of object properties.

Well or other variants how to organize the cache :)

Thank you!
by | 9 views

6 Answers

0 like 0 dislike
Hypersonic in memory
H2 in memory
by
0 like 0 dislike
I could be wrong, but I think you can do without the database. Keep them all in some convenient data structure, like a HashMap, serialize it from time to time to the disk. For example in a separate thread every 0.1 seconds. But of course all depends on the amount and soloistic dokumentov that you are going to store.
by
0 like 0 dislike
And Memcached (wiki) will not work? There are Java libraries.
by
0 like 0 dislike
As for caching, it is a great thing — Ehcache. But this is purely a cache, i.e., a trivial Map, Ala memcached (though with bells and whistles and can embedded). It all depends on what features of the search attributes you need — if everything is transparent and clear, and it is possible to build simple indexes and to use it, it will be fast.
\r
I can still see Neo4J — embedded is a graph-oriented database, a very good thing, if your application falls on graphs.
by
0 like 0 dislike
And I recommend OrientDB. Very cool thing: the more that can be oriented in the desired direction: either keyValue or Graph oriented, relational, etc.
\rwww.orientdb.org/orient-db.htm
by
0 like 0 dislike
View (such as the implementation of JSR-107 and buns) — commons.apache.org/jcs/index.html. There are a lot of delicious.
by

Related questions

0 like 0 dislike
7 answers
0 like 0 dislike
1 answer
0 like 0 dislike
2 answers
0 like 0 dislike
7 answers
110,608 questions
257,186 answers
0 comments
28,888 users