aerospike

How to query bin level LUT on Aerospike 5.5?


Assume you have a set as follows:

+-------+-------+
| PK    | myBin |
+-------+-------+
| "1" |  24    |
+-------+-------+
1 row in set (1 secs)

How to get the LUT metadata for PK=1 for bin myBin?

NOTE: I'm looking for bin level LUT and not row level


Solution

  • Bin-level LUTs are not exposed to the clients due to backward compatibility reasons. So, you cannot query them from client. Also, bin-level LUTs are not always maintained. They are maintained only under certain XDR configurations.

    A work around is to write an additional bin with the time stamp of the update along with the regular bin update. If you have few bins for which you need to know the update time stamp, this is a reasonable workaround with some overhead.