How do I include the PK when doing a AQL select?
Example:
SELECT * from test.users
Returns:
FirstName, LastName etc
What I really want to know is the PK or key so I can delete a row. How can I include the PK in a SELECT AQL statement.
By default, Aerospike does not store the actual primary key in the database. It stores the 20-byte digest (hash of the key) by default. This will be a huge saving for the large keys. However, in the latest version, this can be changed by the put() operation to store the key also. But the AQL client is not enhanced yet to exploit this fact. I will file an internal ticket for this enhancement.
In the mean time...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With