J
J
javax2010-12-05 00:38:03
Java
javax, 2010-12-05 00:38:03

Recommend a database (pure Java, Schema less, embedded, in memory)

Please advise: pure Java, Schema less, embedded, in memory database.
To be used as a cache with the ability to search by object properties.

Well, or other options how to organize such a cache :)

Thank you!

Answer the question

In order to leave comments, you need to log in

6 answer(s)
A
asm0dey, 2010-12-05
@asm0dey

Hypersonic in memory
H2 in memory

D
dborovikov, 2010-12-05
@dborovikov

I may be wrong, but it seems to me that you can do without the database. Store everything in some data structure of your choice, like a HashMap, and serialize it to disk from time to time. Let's say in a separate thread every 0.1 sec. But of course, everything depends on the volume and consistency of the documents that you are going to store.

F
Frenzy, 2010-12-09
@Frenzy

As for caching, a great thing is Ehcache. But this is purely a cache, i.e. banal Map, ala memcached (though with bells and whistles and can be embedded). It all depends on what attribute search capabilities you need - if everything is transparent and clear, then you can build simple indexes yourself and use it, it will be fast.
You can also take a look at Neo4J - this is an embedded graph-oriented database, a very good thing if your application falls on graphs.

D
DbLogs, 2012-12-03
@DbLogs

And I recommend OrientDB. A very cool thing: all the more so since you can orient in the right direction: either by keyval, or Graph oriented, relational, etc.
www.orientdb.org/orient-db.htm

1
1nd1go, 2012-12-03
@1nd1go

Take a look (sort of like a JSR-107 implementation with goodies) - commons.apache.org/jcs/index.html . There are many delicious things.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question