I am trying to do a UNION operation in Aerospike(No-Sql database). However there is no such operation provided by it's query language.
How we can go for a UNION operation in a No-Sql database like Aerospike. I believe this is also applicable to other NoSql database like Couchbase, as I cannot find a supported construct in them as well.
As an example, Let's say I have a collection {key1:value1, key2:value2, key3:value3}. I would be interested in getting the set of collections as follows.
SELECT * from namespace.collections where key2 = someValue and key1=someValue
UNION
SELECT * from namespace.collections where key1 = someValue and key3=someValue