Skip to main content

3 posts tagged with "spring data"

View All Tags

· 2 min read
Tim Faulkes
Stacey Kruczek

Spring Data Aerospike

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.

· 3 min read

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](https://www.aerospike.com/docs/architecture/secondary-index.html) 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:

  1. Using AerospikeTemplate createIndex method; or

  2. Using @Indexed annotation placed over the field in your entity.