As Aerospike only support one secondary index per query, but can support filter with multiple predicate. I want to select best qualifier as the secondary index(statement’s Filter) and the rest as filter(statement’s PredExp). I see there are some index statistics in the sindex command: SINDEX, but there is no detail information for the query result:
asinfo -v 'sindex/phobos_sindex/str_100_idx'
keys=58743268;entries=58743268;ibtr_memory_used=2847777760;nbtr_memory_used=1821041308;si_accounted_memory=4668819068; \
load_pct=100;loadtime=0;stat_write_reqs=462802373;stat_write_success=462802373;stat_write_errs=0;stat_delete_reqs=306554517; \
stat_delete_success=306554517;stat_delete_errs=0;stat_gc_recs=12489653;stat_gc_time=36475718;query_reqs=21281009; \
query_avg_rec_count=0;query_avg_record_size=0;query_agg=0;query_agg_avg_rec_count=0;query_agg_avg_record_size=0; \
query_lookups=21281009;query_lookup_avg_rec_count=0;query_lookup_avg_record_size=0;gc-period=1000;gc-max-units=1000; \
data-max-memory=18446744073709551615;tracing=0;histogram=false;ignore-not-sync=true
Can anyone tell me how to find the detail? Many thanks.
To be more specific, if I want to simple choose the high selectivity secondary index (the one that finds the smallest number of rows), what index statistics can I use?