I am designing a namespace with Aerospike configuration for fast reads. The data will be written in a batch maybe once a week. The data is an integer (0-100).
This is my namespace design for now:
namespace pc {
replication-factor 2
memory-size 4G
high-water-memory-pct 70
high-water-disk-pct 60
default-ttl 14d
nsup-period 120
single-bin true
partition-tree-sprigs 4096
storage-engine device {
file /opt/aerospike/data/pc.dat
filesize 16G
max-write-cache 128M
data-in-memory true
}
}
I am considering to use data-in-memory and single-bin. Will the read speed be improved if I use “data-in-index”? https://docs.aerospike.com/docs/operations/configure/namespace/storage#recipe-for-a-hdd-storage-engine-with-data-in-index-engine