For one of our requirement, we need to get the record size (size taken by record on SSD ). Is there any API in Java client or is possible by Lua UDF to get actual size of record in Aerospike.
The reason we need is that Aerospike has limitation of record size of 1 mb of SSD storage. So we need to find how much space record is currently occupying so that we can split the record in 2 records if size is near to 1 MB.
Please note we do not want to use Large Data Types for this problem as the number of occurrence where record may cross over 1 MB size is not more than 1-2% of total records and we don’t want LDT overhead for 99% records.