how I can see database size correctly (raw and compressed)
aleksss55
Community Edition User ✭
Hello, I can't understand how I can see database size correctly (raw and compressed)
I see compressed database size:select sum(used_bytes) from projection_storage;
I get output 1139051427 bytes or 1139 Мb
I see raw database size:select audit ('');
I get output 229751617 bytes or 229 Мb
Why raw database size in 5 times less than compressed?
It has to be vice versa or do I see database size not correctly?
Tagged:
0
Answers
Are you running Eon or Enterprise?
Do you have a lot of projections per anchor table? Or a lot of replicated projections?
Note: Data in TEMP tables is included in PROJECTION_STORAGE but not an AUDIT().
I have an enterprise mode (3 nodes in cluster)
This is the output of the commands above
Just querying projection_storage won't be accurate when comparing to the results from the audit. Projection_storage includes buddy projections and other type of projections which are all not included in the license audit. Most types of 'duplicated' data aren't considered for license audit (IMO, one of the cool perks of using Vertica ). That's why you see license audit size drastically smaller than projection_storage.
According to https://www.vertica.com/docs/10.0.x/HTML/Content/Authoring/AdministratorsGuide/Licensing/CalculatingTheDatabaseSize.htm: