-
-
Notifications
You must be signed in to change notification settings - Fork 223
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gstat: Print detailed blob statistics and table size #8394
gstat: Print detailed blob statistics and table size #8394
Conversation
The new blob statistics looks as follow: ``` ... Empty pages: 0, full pages: 0 Blobs: 9, total length: 1451015, blob pages: 182 Level 0: 3, total length: 15, blob pages: 0 Level 1: 6, total length: 1451000, blob pages: 182 Table size: 1515520 bytes Fill distribution: ... ```
Do we want it being backported into v5? |
No objection |
* Print detailed blob statistics and table size The new blob statistics looks as follow: ``` ... Empty pages: 0, full pages: 0 Blobs: 9, total length: 1451015, blob pages: 182 Level 0: 3, total length: 15, blob pages: 0 Level 1: 6, total length: 1451000, blob pages: 182 Table size: 1515520 bytes Fill distribution: ... ``` * Add new message instead of modifying existing one --------- Co-authored-by: Artyom Abakumov <[email protected]>
You've messed something up with the formatting of the blob output by levels.
|
Sorry, forgot to change the message number |
There is one non-obvious behavior that i forgot to mention. Previously, blobs statistics were only displayed if they were present. I followed the same logic, so statistics for each level are displayed only if blobs of that level are present. Is this ok? |
I think so. This may create a problem for tools interpreting statistics, but such problems always arise when changing the output format and they are quite easy to fix. P.S. Maybe it is worth thinking about an alternative extensible format that does not break parsing when adding new data, for example JSON/XML. But this is for the future. |
The new blob statistics looks as follow:
The old one: