Reputation: 357
Initially, I have 2 sets(tables) each contains 45gb of data which is total 90gb of data in 1 namespace(database), So I decided to remove 1 set to free up the ram size, after deletion of 1 set, again it shows 90gb, ram size changed nothing. Without a restart of aerospike server, Is there a way to flush the deleted data to free up my ram ??
Thanks in advance !!
Upvotes: 2
Views: 126
Reputation: 7117
From Aerospike CE 3.12 on up you should be using the truncate command to truncate the data in a namespace, or a set of a namespace.
The aerospike/delete-set
repo is an ancient workaround (hasn't been updated in 2 years). In the Java client simply use the AerospikeClient.truncate()
command.
Upvotes: 2