Select random bin from a set in Aerospike Query Language?

I want to select a sample of random 'n' bins from a set in the namespace. Is there a way to achieve this in Aerospike Query Language?

In Oracle, we achieve something similar with the following query:

SELECT * FROM <table-name> sample block(10) where rownum < 101 

The above query fetches blocks of size of 10 rows from a sample size of 100.



Read more here: https://stackoverflow.com/questions/67479788/select-random-bin-from-a-set-in-aerospike-query-language

Content Attribution

This content was originally published by Siena at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: