Actions
Bug #14014
closedA lot of space is wasted on table nodecompliance and nodeconfigurations due to pretty jsonification
Status:
Released
Priority:
N/A
Assignee:
Category:
Performance and scalability
Target version:
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
Fix check:
Regression:
Description
About 30% of the table size if use by spaces, even when accounting the compression within postgres
Creating the nodecompliance3 table, with the script
insert into nodecompliance3 (nodeid, runtimestamp, endoflife, runanalysis, summary, details) select nodeid, runtimestamp, endoflife, runanalysis, summary, regexp_replace(regexp_replace(regexp_replace(regexp_replace(details, '\s+"', '"', 'ig'), '\s+{', '{', 'ig'), '\s+}', '}', 'ig'), '\s+\]', ']', 'ig') from nodecompliance;
result in following disk usage, after vacuum full of both tables
oid | table_schema | table_name | row_estimate | total_bytes | index_bytes | toast_bytes | table_bytes | total | index | toast | table -------+--------------+----------------------+--------------+-------------+-------------+-------------+-------------+---------+--------+------------+-------- 16497 | public | nodecompliance | 350 | 1089536 | 98304 | 761856 | 229376 | 1064 kB | 96 kB | 744 kB | 224 kB 25435 | public | nodecompliance3 | 350 | 794624 | 98304 | 483328 | 212992 | 776 kB | 96 kB | 472 kB | 208 kB
Updated by Nicolas CHARLES about 6 years ago
- Status changed from New to In progress
- Assignee set to Nicolas CHARLES
Updated by Nicolas CHARLES about 6 years ago
- Status changed from In progress to Pending technical review
- Assignee changed from Nicolas CHARLES to François ARMAND
- Pull Request set to https://github.com/Normation/rudder/pull/2100
Updated by Nicolas CHARLES about 6 years ago
- Status changed from Pending technical review to Pending release
Applied in changeset rudder|30b14f189c3c46c327ecdc5eecdc185218a41f56.
Updated by Nicolas CHARLES about 6 years ago
- Subject changed from A lot of space is wasted on table nodecompliance due to pretty jsonification to A lot of space is wasted on table nodecompliance and nodeconfigurations due to pretty jsonification
Updated by Vincent MEMBRÉ almost 6 years ago
- Status changed from Pending release to Released
Actions