How do I scan through the whole foundationDB to find all the keys in it?

We have a foundationDB with huge amount of data and the amount of data is growing. We have written to purge the data by keys once the data is “old” enough. However, it seems that there are data “leakage” such that the size of foundataDB is growing day by day. We would like to find out what data are stored in it by iterating through all the keys. Is there a way to do that? Thanks!

-Wei

One way that I can think of would be to use a combination of getBoundaryKeys and RecordLayer’s KeyValueCursor.

getBoundaryKeys should let you “map” to the appropriate storage servers, and with KeyValueCursor you can take care of handling out-of-band limits when doing the range scan (“reduce”) on the storage server.