cqengine icon indicating copy to clipboard operation
cqengine copied to clipboard

Added ChronicleMap persistence as an alternative to SQLite

Open akumaburn opened this issue 2 years ago • 2 comments

I did recently add ChronicleMap (https://github.com/OpenHFT/Chronicle-Map) as a store to CQEngine and tested it successfully. It is license compatible with this project using the same type - Apache 2.0 license: https://github.com/OpenHFT/Chronicle-Map/blob/ea/LICENSE

Usage is like:

ChroniclePersistence<Community, String> diskPersistence = new ChroniclePersistence<>((SimpleAttribute<Community, String>) GUID_ATTRIB, new File("persist.dat"),String.class,Community.class,UUID.randomUUID().toString().length()+1,64 * 1024,1000000);

ConcurrentIndexedCollection<Community> communities = new ConcurrentIndexedCollection<>(diskPersistence);

akumaburn avatar Apr 06 '23 17:04 akumaburn

This is very interesting, and something I would be interested in merging.

I am hoping soon to carve out some time to take a closer look.

npgall avatar Apr 07 '23 10:04 npgall