Secondary Index - Additional data storage

Does adding a secondary index (or multiple secondary index) duplicate data or increase the disk space in any way?

In the use case I am talking, the bins store the value as blobs and hence I am not sure how secondary index work in this case.

Thanks

It stores extra references to those keys in memory. https://www.aerospike.com/docs/operations/plan/capacity/index.html#capacity-planning-for-secondary-indexes

Having values stored as blobs may not make sense to be then indexed… Secondary indices require String or Numerical or GeoJson.

BTW, the secondary index sub-system is on deck for a re-write… hopefully early next year, which will make it more efficient (memory wise) and more performant!

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.