是否有可能获得Apache Derby中表的使用空间?
答案 0 :(得分:1)
以下语句返回每个表的大小:
select
tableName,
(select sum(numallocatedpages * pagesize) from new org.apache.derby.diag.SpaceTable('APP', t.tablename) x) as size
from SYS.SYSTABLES t
order by size desc
答案 1 :(得分:1)
以下查询显示表和索引的空间使用情况。
class SomeClass:
def __init__(self, foo, bar):
self.foo = foo
self.bar= bar
one_instance3 = create_instance(SomeClass, "hello", bar="World")