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

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!
October 14th 19 at 10:29
6 answers
October 14th 19 at 10:31
Hypersonic in memory
H2 in memory
Thanks, I know about them. They are both relational, and I would like firstly not to mess with Hibernate. I'm in Topeka indicated they are looking for without a Schema - vesta.Mann28 commented on October 14th 19 at 10:34
Damn, I'm sorry. I saw in memory, and wrote what is important for me at the moment

Like here is an option:
www.neodatis.org/
Also kind of curious
www.metanotion.net/software/sandbox/block.html
There's this:
www.db4o.com
She has a GPL edition and on their website said
db4o — The World's Most Popular Object Database - Edwin_Rice44 commented on October 14th 19 at 10:37
+1 to db4o — tried touched — a very pleasant experience. - nikita.Stracke commented on October 14th 19 at 10:40
October 14th 19 at 10:33
I could be wrong, but I think you can do without the database. Keep them all in some convenient data structure, like a HashMap and 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.
+1
At least have the same file *.properties. - vesta.Mann28 commented on October 14th 19 at 10:36
The problem is that I need this data to run the select and if I just stored in the data structure, I need to implement filter and sort. Not difficult, but would like to avoid - Edwin_Rice44 commented on October 14th 19 at 10:39
A schema-less database, and do not provide any "select points" more difficult than sampling the values by key. - nikita.Stracke commented on October 14th 19 at 10:42
I've just-for-fun wrote in-memory repository: pastie.org/1360456 - will_Lang commented on October 14th 19 at 10:45
October 14th 19 at 10:35
And Memcached (wiki) will not work? There are Java libraries.
Then, too, or MemBase MemcacheDB. And it's not document-oriend and key-value. - vesta.Mann28 commented on October 14th 19 at 10:38
So Memcached't written in Java, it has its own server, right? Ie embedded can't do - Edwin_Rice44 commented on October 14th 19 at 10:41
October 14th 19 at 10:37
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.

I can still see Neo4J — embedded is a graph-oriented database, a very good thing, if your application falls on graphs.
October 14th 19 at 10:39
And I recommend OrientDB. Very cool thing: the more that can be oriented in the desired direction: either keyValue or Graph oriented, relational, etc.
www.orientdb.org/orient-db.htm
October 14th 19 at 10:41
View (such as the implementation of JSR-107 and buns) — commons.apache.org/jcs/index.html. There are a lot of delicious.

Find more questions by tags DatabasesNoSQLJava