Hi All,
I am planning to use Aerospike as DB for very large volume of data. The records will not have any primary key. Its kind of statistics where i don’t need any primary key. Is it possible to insert records without primary key.
Regards, Aditya
Hi All,
I am planning to use Aerospike as DB for very large volume of data. The records will not have any primary key. Its kind of statistics where i don’t need any primary key. Is it possible to insert records without primary key.
Regards, Aditya
@Aditya,
The short answer is - you need a primary key in order to insert records. Aerospike is a key-value store …
A record is composed of the following:
The key is what the application will use to read or write the record. However, when the key is sent to the database, the key is hashed into a 160-bit digest. Within the database, the digest is used to address the record for all operations. The key may be an integer, string or bytes value.
So you can’t insert a record without a primary key. You will find information on the command for inserting a record here.
Thanks a lot for clearing up my understandings…