I have a few sets (each of them store rows which have a key and a bin) with number of records in the order of 1k-30k. I use the java client. I want to retrieve all the records in these sets. There are 2 ways I can think of
- client.query with statement param which has no filter at all and iterate over all the key, record pairs
scanAll says : "This call will block until the scan is complete - callbacks are made within the scope of this call" RecordSet’s next says : “This method will block until a record is retrieved or the query is cancelled.”
Its not very clear to me what these blocks are? Does this mean just the call is blocked? Or the server? And Overall which gives a better performance. Ideally i would like the total response time to be around 1s.
Which among the 2 is better and Is there any other better way?