I came across the scenario to batch read from multiple namespaces.
URL: https://www.aerospike.com/docs/guide/batch.html Aerospike documentation says that we can do batch read from within a namespace. However, using the java client jar version 3.0.30 I was able to query keys from multiple namespaces in one batch get call.
AerospikeClient client = new AerospikeClient(Constants.MACHINE1, Constants.MACHINE1_PORT); Key keys = new Key; keys = new Key("test", "demo", 1); keys = new Key("testns", "demo", 2); keys = new Key("testns", "demo1", 1); Record records = client.get(null, keys);
Request you to guide me if I am doing something wrong or there is a performance overhead. If it seems to be correct, can we correct the documentation.