gpt4 book ai didi

c# - CloudBlob 子类之间有什么区别?

转载 作者:行者123 更新时间:2023-12-01 11:21:27 25 4
gpt4 key购买 nike

看起来像CloudBlob有 3 个子类,可用于将数据传入和传出 Azure 存储。这是(非常稀疏的)文档:

  • Microsoft.WindowsAzure.Storage.Blob。 CloudBlockBlob
    • Represents a blob that is uploaded as a set of blocks.

  • Microsoft.WindowsAzure.Storage.Blob。 CloudAppendBlob :
    • Represents an append blob, a type of blob where blocks of data are always committed to the end of the blob.

  • Microsoft.WindowsAzure.Storage.Blob。 CloudPageBlob
    • Represents a Microsoft Azure page blob.

我一直在使用CloudBlockBlob上传/下载 pdf 和图像,一切似乎都正常。我似乎找不到解释这些类的作用的页面。

什么情况下应该使用CloudAppendBlobCloudPageBlob

最佳答案

找到了我要找的页面:https://learn.microsoft.com/en-us/azure/storage/blobs/storage-blobs-introduction

  • CloudBlockBlob:
    • Block blobs are ideal for storing text or binary files, such as documents and media files.

  • CloudAppendBlob:
    • Append blobs are similar to block blobs in that they are made up of blocks, but they are optimized for append operations, so they are useful for logging scenarios.

  • CloudPageBlob:
    • Page blobs can be up to 1 TB in size, and are more efficient for frequent read/write operations. Azure Virtual Machines use page blobs as OS and data disks.

关于c# - CloudBlob 子类之间有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42250881/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com