I would like to consume a view in a way that I can split up the work across different threads. My idea is to get the # of IDs in the view, split it up to N and give each chunk to a thread.
Is there a better approach to consume a view from multiple threads in a thread safe way.
I could not find the documentation that describes how can I count the number of keys in a view with the API (Java). Since the skip option is very slow for billion keys the only option is to use start-key and end-key for the multi-threaded pagination. I am wondering how could I get the Nth element of a view to use it for start-key and end-key.