riak python paginate_stream_index hangs when results are empty

Travis Kirstine tkirstine at firstbasesolutions.com
Wed Oct 25 09:50:47 EDT 2017

I using a ranged secondary index search to find then delete objects from riak using python (riak version 2.7.0)

something like:

      for page in bucket.paginate_stream_index("tile_coord_bin", min_index, max_index):
        for keys in page:
          for key in keys:

I've notice in some cases this hangs after instantiating the page object and never proceeds to the "for keys in page" loop.  This appears to be happening when the search has no results (page has no keys).  Is there a method that I can call to check if the page is empty before proceeding?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20171025/5aaa599d/attachment-0002.html>

More information about the riak-users mailing list