Company
Date Published
Author
Neel Phadnis
Word count
1975
Language
English
Hacker News points
None

Summary

Aerospike's Collection Data Types (CDTs) offer powerful capabilities for modeling and accessing data, particularly with List and Map data types. The CDTs can be indexed to enable efficient querying of JSON documents and other complex objects. New indexing capabilities in Aerospike Database 6.1 allow elements in a CDT to be indexed based on their index, key, rank, or value, regardless of nesting level. This enables powerful queries such as equality and range queries on integer values, as well as containment queries on string values. The application should carefully determine the correct context-path while defining an index, taking into account data and application semantics. Additionally, when values that need to be indexed are not available in one List or Map, consider replicating them in a separate List for defining an index, and keep the indexed List in sync with the values.