none
ListBlobsSegmented return order

    Question

  • Hello,

    From the documentation here (https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/list-blobs) it seems to indicate that blobs are returned for listblobs in alphabetical order. For the c# .net implementation of ListBlobsSegmented, is there any such guarantee on ordering (https://msdn.microsoft.com/en-us/library/azure/jj717596.aspx)?

    Currently we are trying to figure out that given a set of blobs in a container, if we list and process them and we are interrupted, whether the next time we retry we can continue where we left off previously (so we would once again call ListBlobsSegmented and just skip the first K entries). We are assuming no other changes to the blobs or containers during this period of time. If the ordering is not guaranteed to be the same each time, we would need to do some or sorting or just give up on picking up where we left off.

    Thanks

    Thursday, March 23, 2017 10:28 PM

All replies

  • The results are guaranteed to be in lexicographical order. If there are no other changes, then you are good to skip the first K and continue from where you left off.

    List Blob underneath use ListBlobsSegmented. So, it should return the same result and maintain the order

    Saturday, March 25, 2017 3:00 PM
    Moderator