Search code examples
javaaerospikedatabasenosql

Aerospike database design


I would like to make aerospike database which will contain the following structure:

scheme = {
    "name": "name",
    "version": "version", 
    "fields": [
        {   
            "name": "clicks",
            "total_count": 67238882342,
         ...
        }
    ]
}

scheme name and scheme fields belong to different level. But aerospike doesn't support UNION/JOIN operations. How can I designed my DB?


Solution

  • Aerospike supports nested lists & maps. See the java example.