Alex Stanovsky
Alex Stanovsky

Reputation: 1366

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"

Upvotes: 2

Views: 233

Answers (1)

Ronen Botzer
Ronen Botzer

Reputation: 7117

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.

Upvotes: 3

Related Questions