I am using node.js client. First I retrieve unique keys of all records in a table. I then loop through each record and issue
var key = {
ns: 'CRM;,
set: 'visit',
key: row.id
};
client.remove(key, function(err){
if(err==0) console.log('removed');
}
This shows successful delete.
in AQL select shows 0 rows :
aql> select * from CRM.visit
0 rows in set (0.073 secs)
Then I restart the service:
[vagrant@localhost ~]$ sudo service aerospike restart
Stopping aerospike: [ OK ]
Starting and checking aerospike: [ OK ]
go back to AQL and
aql> select * from CRM.visit
This time, there’s 15 records, the same ones that were deleted.
Is there something that isn’t being committed? How can I avoid this behavior? Is there some commit function?