开发者

Azure - Sort order of List operation on blob container

开发者 https://www.devze.com 2023-03-02 20:13 出处:网络
What is the sort order of a list operation on a blob container? Is it like A开发者_Go百科zure Table Storage, where it is alphabetic?From the last line of \"List Blobs\" in MSDN - http://msdn.microsoft

What is the sort order of a list operation on a blob container? Is it like A开发者_Go百科zure Table Storage, where it is alphabetic?


From the last line of "List Blobs" in MSDN - http://msdn.microsoft.com/en-us/library/dd135734.aspx

Blobs are listed in alphabetical order in the response body.


As an aside, in one of the PDC deep dive talks, the storage team talked about the fact that blobs are keyed on a combination of the container name and blob path, so this is what determines the list order - and it also determines "hot spots" if you are hitting blob storage for lots of similarly named files.


Given that blobs supports an equivalent of the continuation tokens used by table storage (Marker/NextMarker) the order that blobs are returned in would have to be fixed. While it's not explicitly mentioned in the specs that we have access to, I suspect blobs will always be returned in alphabetic order. I'd be happy if someone from MS could verify this though.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号