Search code examples
aerospike

Create index in Aerospike configuration(aerospike.conf)


Aerospike reference specify that there are static configuration for indices.

Is there a way to create secondary index via the configuration ?

similar to :

asinfo  -v "sindex-create:ns=ns;set=set;indexname=bin;indexdata=name,STRING"

Solution

  • There is not, but you can write a wrapper script to handle starting up your server and then applying any asinfo commands that apply to your model.