The latest release of Spring Data Aerospike, version 4.6.0, brings a host of exciting new features and enhancements. This blog will delve into three key highlights: support for native Aerospike keys, using paginated queries, and the ability to create custom queries.
The new Spring Data Aerospike release 4.6.0 introduces several new features and enhancements. In this article, we will talk about customizing set names and using batch write operations. Other major new features are described in the second part.
Spring Data Aerospike now supports the latest version of Spring Data 3 for mapping of Java objects to the Aerospike database. Java developers can now leverage the power, speed and flexibility of the Aerospike database without having to write boilerplate code to transform their object to the database.
Secondary indexes are on a non-primary key, which allows you to model one-to-many relationships. https://www.aerospike.com/docs/architecture/secondary-index.html
spring-data-aerospike supports creating secondary indexes in Aerospike out of the box.
There are two ways to accomplish this task:
Using AerospikeTemplate createIndex method; or
Using @Indexed annotation placed over the field in your entity.