table rows, table size in Oracle

This commit is contained in:
SPRINX0\prochazka
2025-11-21 16:19:51 +01:00
parent b80cbea1bc
commit 7ec156a5d1
2 changed files with 5 additions and 1 deletions

View File

@@ -131,6 +131,8 @@ class Analyser extends DatabaseAnalyser {
// schemaName: table.schema_name,
objectId: `tables:${table.pure_name}`,
contentHash: table.hash_code_columns ? `${table.hash_code_columns}-${table.hash_code_constraints}` : null,
sizeBytes: table.size_bytes,
tableRowCount: table.table_row_count,
};
return {
...newTable,

View File

@@ -1,7 +1,9 @@
module.exports = `
select
-- owner "schema_name",
table_name "pure_name"
table_name "pure_name",
num_rows * avg_row_len "size_bytes",
num_rows "table_row_count"
from
all_tables
where OWNER='$owner' AND 'tables:' || TABLE_NAME =OBJECT_ID_CONDITION