How to get any "N" number of records from a set in namespace?

key
record

#1

I want to get any “n” number of records from a set in namespace. I want to show a sample data from the set. Its more like having a peek into the set to see what data is in it. I am assuming that i have placed the same schema data in a set in aerospike. I am thinking of modifying the scanAll method for getting only 10 records. Would it be a good approach if i don’t find a method to do this task?

Thank you

Regards.


#2

The closest option is the scanPercent argument in our scan APIs.


#3

Thanks it will help a lot