I am trying to delete bins from my set.
The thing is when I delete them, they are still shown in
aql> show bins
+-------+------------------+-------+-----------+
| quota | bin | count | namespace |
+-------+------------------+-------+-----------+
| 32768 | "family" | 14 | "test" |
| 32768 | "querybinstring" | 14 | "test" |
| 32768 | "querybinint" | 14 | "test" |
| 32768 | "binstringfoo" | 14 | "test" |
+-------+------------------+-------+-----------+
though the data has been deleted from the set.
aql> select * from test.testset
0 rows in set (0.000 secs)
The issue arises when my binNames reaches 32k limit of unique binNames constraint.
I have to restart aerospike for the deleted bin names to be really gone.
So is there any other way than to restart after deleting bins ?
What really happens when aerospike is restarted ? (which deletes the deleted [marked as deleted] bins )
Note : I have tested this by deleting the bins using
- client.delete()
- set expiration
One more question - Is there any way I can delete all bins from a set through aql ?