管理存储空间使用
你被收费的项目 #
🌐 What you are charged for
你会按你桶里所有资源的总大小收费。
🌐 You are charged for the total size of all assets in your buckets.
费用是怎么计算的 #
🌐 How charges are calculated
存储大小按千兆字节-小时(GB-Hrs)收费。1 GB-Hr 表示使用 1 GB 存储空间 1 小时。 例如,存储 10 GB 数据 5 小时就是 50 GB-Hrs(10 GB × 5 小时)。
🌐 Storage size is charged by Gigabyte-Hours (GB-Hrs). 1 GB-Hr represents the use of 1 GB of storage for 1 hour. For example, storing 10 GB of data for 5 hours results in 50 GB-Hrs (10 GB × 5 hours).
因为使用量是以 GB-小时 来衡量的,所以用于配额和计费的存储大小实际上是整个计费周期的平均值,而不是实时大小。比如说,如果一个月的前半个月存储了 20 GB,后半个月存储了 0 GB,那么平均就是 10 GB。这意味着在周期后期减少存储只会慢慢降低平均值,所以可能要到下一个计费周期开始才会立即解除限制。
🌐 Because usage is measured in GB-Hrs, your Storage size for quota and billing is effectively the average across the billing period, not the live size. For example, storing 20 GB for the first half of the month and 0 GB for the second half averages to 10 GB. This means reducing storage late in the cycle lowers the average only gradually, so it may not immediately clear a restriction until the next billing cycle begins.
在你的发票上的用途 #
🌐 Usage on your invoice
在你的发票上,使用量显示为“存储大小 GB-小时”。
🌐 Usage is shown as "Storage Size GB-Hrs" on your invoice.
价格 #
🌐 Pricing
$0.00002919 每 GB-小时 ($0.0213 每 GB 每月)。你只需为超出订阅计划配额的使用量付费。
| 计划 | 配额 (GB) | 超额使用每 GB 收费 | 配额 (GB-小时) | 超额使用每 GB-小时 收费 |
|---|---|---|---|---|
| 免费 | 1 | - | 744 | - |
| 专业 | 100 | $0.0213 | 74,400 | $0.00002919 |
| 团队 | 100 | $0.0213 | 74,400 | $0.00002919 |
| 企业 | 自定义 | 自定义 | 自定义 | 自定义 |
计费示例 #
🌐 Billing examples
在配额内 #
🌐 Within quota
该组织的存储大小使用量在配额范围内,因此不收取存储大小费用。
🌐 The organization's Storage size usage is within the quota, so no charges for Storage size apply.
| 项目 | 单位 | 成本 |
|---|---|---|
| 专业版计划 | 1 | $25 |
| 小型计算小时 | 730 小时 | $15 |
| 存储大小 | 85 GB | $0 |
| 小计 | $40 | |
| 计算积分 | -$10 | |
| 总计 | $30 |
超出配额 #
🌐 Exceeding quota
该组织的存储使用量已超出配额188 GB,因此会产生额外费用。
🌐 The organization's Storage size usage exceeds the quota by 188 GB, incurring charges for this additional usage.
| 项目 | 单位 | 费用 |
|---|---|---|
| 专业版计划 | 1 | $25 |
| 小型计算小时 | 730 小时 | $15 |
| 存储大小 | 288 GB | $4 |
| 小计 | $44 | |
| 计算积分 | -$10 | |
| 总计 | $34 |
查看使用情况 #
🌐 View usage
使用页面 #
🌐 Usage page
你可以在组织的使用情况页面查看存储容量使用情况。默认情况下,页面会显示所有项目的使用情况。要查看特定项目的使用情况,请从下拉菜单中选择它。你也可以选择不同的时间段。
🌐 You can view Storage size usage on the organization's usage page. The page shows the usage of all projects by default. To view the usage for a specific project, select it from the dropdown. You can also select a different time period.

在存储大小部分,你可以看到你的项目在所选时间段内使用了多少存储空间。
🌐 In the Storage size section, you can see how much storage your projects have used during the selected time period.

SQL 编辑器 #
🌐 SQL Editor
由于我们设计了 Storage,使其作为 Supabase 上 Postgres 数据库的一个集成部分工作,你可以在 storage schema 中查询关于 Storage 对象的信息。
🌐 Since we designed Storage to work as an integrated part of your Postgres database on Supabase, you can query information about your Storage objects in the storage schema.
列出大于5 MB的文件:
🌐 List files larger than 5 MB:
1select2 name,3 bucket_id as bucket,4 case5 when (metadata->>'size')::int >= 1073741824 then6 ((metadata->>'size')::int / 1073741824.0)::numeric(10, 2) || ' GB'7 when (metadata->>'size')::int >= 1048576 then8 ((metadata->>'size')::int / 1048576.0)::numeric(10, 2) || ' MB'9 when (metadata->>'size')::int >= 1024 then10 ((metadata->>'size')::int / 1024.0)::numeric(10, 2) || ' KB'11 else12 (metadata->>'size')::int || ' bytes'13 end as size14from15 storage.objects16where17 (metadata->>'size')::int > 1048576 * 518order by (metadata->>'size')::int desc列出桶及它们的总大小:
🌐 List buckets with their total size:
1select2 bucket_id,3 (sum((metadata->>'size')::int) / 1048576.0)::numeric(10, 2) as total_size_megabyte4from5 storage.objects6group by7 bucket_id8order by9 total_size_megabyte desc;优化使用 #
🌐 Optimize usage
超额 #
🌐 Exceeding Quotas
如果你使用的是付费计划并且已关闭花费上限,或者你的组织使用的是团队计划及以上,你将需要支付任何超出部分的费用。
🌐 If you are on a paid plan and have Spend Cap disabled or your organization is on Team Plan or above, you will pay for any overages.
当你在使用免费计划或启用了消费上限时超出配额,你会收到发送到账单邮箱的通知,并进入宽限期。更多细节请参阅我们的公平使用政策。
🌐 When you are exceeding your quotas while being on a Free Plan or having Spend Cap enabled, you will get a notification to your billing email address and put under a grace period. For more details, refer to our Fair Use Policy.