[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-09-04 (世界標準時間)。"],[[["\u003cp\u003eThe \u003ccode\u003eINFORMATION_SCHEMA.TABLE_STORAGE_USAGE_TIMELINE_BY_ORGANIZATION\u003c/code\u003e view provides daily storage usage totals for the past 90 days, including standard tables, materialized views, and table clones/snapshots with byte deltas.\u003c/p\u003e\n"],["\u003cp\u003eThis view excludes external, anonymous, and empty tables, as well as clones/snapshots without byte deltas, as they don't have billable bytes.\u003c/p\u003e\n"],["\u003cp\u003eStorage usage data in this view is delayed by approximately 72 hours, and the view returns one row per day for each table or materialized view in the organization.\u003c/p\u003e\n"],["\u003cp\u003eTo query this view, you need specific IAM permissions (\u003ccode\u003ebigquery.tables.get\u003c/code\u003e, \u003ccode\u003ebigquery.tables.list\u003c/code\u003e), and it's accessible only to users with defined Google Cloud organizations.\u003c/p\u003e\n"],["\u003cp\u003eThe view's data is measured in MiB seconds and includes details on logical and physical usage, and requires the use of a region qualifier in the query.\u003c/p\u003e\n"]]],[],null,["# TABLE_STORAGE_USAGE_TIMELINE_BY_ORGANIZATION view\n=================================================\n\n|\n| **Preview**\n|\n|\n| This product or feature is subject to the \"Pre-GA Offerings Terms\" in the General Service Terms section\n| of the [Service Specific Terms](/terms/service-terms#1).\n|\n| Pre-GA products and features are available \"as is\" and might have limited support.\n|\n| For more information, see the\n| [launch stage descriptions](/products#product-launch-stages).\n\nThe `INFORMATION_SCHEMA.TABLE_STORAGE_USAGE_TIMELINE_BY_ORGANIZATION` view\nprovides daily totals of storage usage for the past 90 days\nfor the following types of tables:\n\n- Standard tables\n- Materialized views\n- Table clones that have a delta in bytes from the base table\n- Table snapshots that have a delta in bytes from the base table\n\nTables that don't have billable bytes aren't included in the\n`INFORMATION_SCHEMA.TABLE_STORAGE_USAGE_TIMELINE_BY_ORGANIZATION` view. This\nincludes the following types of tables:\n\n- External tables\n- Anonymous tables\n- Empty tables\n- Table clones that have no delta in bytes from the base table\n- Table snapshots that have no delta in bytes from the base table\n\nWhen you query the `INFORMATION_SCHEMA.TABLE_STORAGE_USAGE_TIMELINE_BY_ORGANIZATION`\nview, the query results contain one row per day for each table or\nmaterialized view for the whole organization associated with the\ncurrent project.\n\nThe data in this table is not available in real time. It takes approximately 72\nhours for table data to be reflected in this view.\n\nStorage usage is returned in MiB second. For example, if a project uses\n1,000,000 physical bytes for 86,400 seconds (24 hours), the total physical\nusage is 86,400,000,000 byte seconds, which is converted to 82,397 MiB seconds,\nas shown in the following example: \n\n 86,400,000,000 / 1,024 / 1,024 = 82,397\n\nThis is the value that would be returned by the `BILLABLE_TOTAL_PHYSICAL_USAGE`\ncolumn.\n\nFor more information, see\n[Storage pricing details](/bigquery/pricing#storage-pricing-details).\n| **Note:** Data for this view has a start date of October 1, 2023. You can query the view for dates prior to that, but the data returned is incomplete.\n\nRequired permissions\n--------------------\n\nTo query the `INFORMATION_SCHEMA.TABLE_STORAGE_USAGE_TIMELINE_BY_ORGANIZATION` view, you\nneed the following Identity and Access Management (IAM) permissions for your organization:\n\n- `bigquery.tables.get`\n- `bigquery.tables.list`\n\nEach of the following predefined IAM roles includes the preceding\npermissions:\n\n- `roles/bigquery.dataViewer`\n- `roles/bigquery.dataEditor`\n- `roles/bigquery.metadataViewer`\n- `roles/bigquery.admin`\n\nThis schema view is only available to users with defined [Google Cloud\norganizations](/resource-manager/docs/cloud-platform-resource-hierarchy#organizations).\n\nFor more information about BigQuery permissions, see\n[Access control with IAM](/bigquery/docs/access-control).\n\nSchema\n------\n\nThe `INFORMATION_SCHEMA.TABLE_STORAGE_USAGE_TIMELINE_BY_ORGANIZATION` view has the\nfollowing schema:\n\nScope and syntax\n----------------\n\nQueries against this view must include a [region qualifier](/bigquery/docs/information-schema-intro#syntax).\nIf you don't specify a regional qualifier, metadata is retrieved from all\nregions. The following table explains the region scope for this view:\n\nReplace the following:\n\n- Optional: \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e: the ID of your Google Cloud project. If not specified, the default project is used.\n- \u003cvar translate=\"no\"\u003eREGION\u003c/var\u003e: any [dataset region name](/bigquery/docs/locations). For example, ```region-us```.\n\n \u003cbr /\u003e\n\n \u003cbr /\u003e\n\n | **Note:** You must use [a region qualifier](/bigquery/docs/information-schema-intro#region_qualifier) to query `INFORMATION_SCHEMA` views. The location of the query execution must match the region of the `INFORMATION_SCHEMA` view.\n\n\u003cbr /\u003e\n\nThe following example shows how to return storage information for tables in a\nspecified project in an organization: \n\n SELECT * FROM myProject.`region-\u003cvar translate=\"no\"\u003eREGION\u003c/var\u003e`.INFORMATION_SCHEMA.TABLE_STORAGE_USAGE_TIMELINE_BY_ORGANIZATION;\n\nThe following example shows how to return storage information by project for\ntables in an organization: \n\n SELECT * FROM `region-\u003cvar translate=\"no\"\u003eREGION\u003c/var\u003e`.INFORMATION_SCHEMA.TABLE_STORAGE_USAGE_TIMELINE_BY_ORGANIZATION;\n\nExample\n-------\n\nThe following example shows the usage for all tables in the organization for\nthe most recent usage date. \n\n```googlesql\nSELECT\n usage_date,\n project_id,\n table_schema,\n table_name,\n billable_total_logical_usage,\n billable_total_physical_usage\nFROM\n (\n SELECT\n *,\n ROW_NUMBER()\n OVER (PARTITION BY project_id, table_schema, table_name ORDER BY usage_date DESC) AS rank\n FROM\n `region-\u003cvar translate=\"no\"\u003eREGION\u003c/var\u003e`.INFORMATION_SCHEMA.TABLE_STORAGE_USAGE_TIMELINE_BY_ORGANIZATION\n )\nWHERE rank = 1;\n```\n\nThe result is similar to the following: \n\n```\n+--------------+------------+--------------+------------+------------------------------+-------------------------------+\n| usage_date | project_id | table_schema | table_name | billable_total_logical_usage | billable_total_physical_usage |\n+--------------+------------+--------------+------------+------------------------------+-------------------------------+\n| 2023-04-03 | project1 | dataset_A | table_x | 734893409201 | 0 |\n+--------------+------------+--------------+------------+------------------------------+-------------------------------+\n| 2023-04-03 | project1 | dataset_A | table_z | 110070445455 | 0 |\n+--------------+------------+--------------+------------+------------------------------+-------------------------------+\n| 2023-04-03 | project1 | dataset_B | table_y | 0 | 52500873256 |\n+--------------+------------+--------------+------------+------------------------------+-------------------------------+\n| 2023-04-03 | project1 | dataset_B | table_t | 0 | 32513713981 |\n+--------------+------------+--------------+------------+------------------------------+-------------------------------+\n| 2023-04-03 | project2 | dataset_C | table_m | 8894535352 | 0 |\n+--------------+------------+--------------+------------+------------------------------+-------------------------------+\n| 2023-04-03 | project2 | dataset_C | table_n | 4183337201 | 0 |\n+--------------+------------+--------------+------------+------------------------------+-------------------------------+\n```"]]