Get total size of data in a catalog and schema in Unity Catalog
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2023 08:05 AM
For a KPI dashboard, we need to know the exact size of the data in a catalog and also all schemas inside the catalogs. What is the best way to do this?
We tried to iterate over all tables and sum the sizeInBytes using the DESCRIBE DETAIL command for the tables. However, since we have a lot of tables, it takes a really long time.
We also tried looking in the information_schema databases for all the catalogs but couldn't find such information there.
Labels:
- Labels:
-
DESCRIBE DETAIL
-
Unity Catalog