Changeset 61473 in vbox
- Timestamp:
- Jun 5, 2016 5:46:25 PM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 107800
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testmanager/db/TestManagerDatabaseComments.pgsql
r61408 r61473 507 507 508 508 509 COMMENT ON COLUMN SchedGroups.sComment IS 510 'The Validation Kit build source (@VALIDATIONKIT_ZIP@). 511 Non-unique foreign key: BuildSources(idBuildSrc)'; 512 513 509 514 COMMENT ON TABLE SchedGroupMembers IS 510 515 'N:M relationship between scheduling groups and test groups. … … 550 555 551 556 557 COMMENT ON TABLE TestBoxStrTab IS 558 'String table for the test boxes. 559 560 This is a string cache for all string members in TestBoxes except the name. 561 The rational is to avoid duplicating large strings like sReport when the 562 testbox reports a new cMbScratch value or the box when the test sheriff 563 sends a reboot command or similar. 564 565 At the time this table was introduced, we had 400558 TestBoxes rows, where 566 the SUM(LENGTH(sReport)) was 993MB. There were really just 1066 distinct 567 sReport values, with a total length of 0x3 MB. 568 569 Nothing is ever deleted from this table. 570 571 @note Should use a stored procedure to query/insert a string. 572 573 574 TestBox stats prior to conversion: 575 SELECT COUNT(*) FROM TestBoxes: 400558 rows 576 SELECT pg_total_relation_size(''TestBoxes''): 740794368 bytes (706 MB) 577 Average row cost: 740794368 / 400558 = 1849 bytes/row 578 579 After conversion: 580 SELECT COUNT(*) FROM TestBoxes: 400558 rows 581 SELECT pg_total_relation_size(''TestBoxes''): 144375808 bytes (138 MB) 582 SELECT COUNT(idStr) FROM TestBoxStrTab: 1292 rows 583 SELECT pg_total_relation_size(''TestBoxStrTab''): 5709824 bytes (5.5 MB) 584 (144375808 + 5709824) / 740794368 = 20 % 585 Average row cost boxes: 144375808 / 400558 = 360 bytes/row 586 Average row cost strings: 5709824 / 1292 = 4420 bytes/row'; 587 588 589 COMMENT ON COLUMN TestBoxStrTab.sValue IS 590 'The string value.'; 591 592 593 COMMENT ON COLUMN TestBoxStrTab.tsCreated IS 594 'Creation time stamp.'; 595 596 552 597 COMMENT ON TYPE TestBoxCmd_T IS 553 598 'Testbox commands.'; … … 603 648 604 649 605 COMMENT ON COLUMN TestBoxes.sDescription IS606 'Optional testbox description.607 Intended for describing the box as well as making other relevant notes.';608 609 610 650 COMMENT ON COLUMN TestBoxes.fEnabled IS 611 651 'Indicates whether this testbox is enabled. … … 619 659 620 660 621 COMMENT ON COLUMN TestBoxes.sOs IS622 'Same abbrieviations as kBuild, see KBUILD_OSES.';623 624 625 COMMENT ON COLUMN TestBoxes.sOsVersion IS626 'Informational, no fixed format.';627 628 629 COMMENT ON COLUMN TestBoxes.sCpuVendor IS630 'Same as CPUID reports (GenuineIntel, AuthenticAMD, CentaurHauls, ...).';631 632 633 COMMENT ON COLUMN TestBoxes.sCpuArch IS634 'Same as kBuild - x86, amd64, ... See KBUILD_ARCHES.';635 636 637 COMMENT ON COLUMN TestBoxes.sCpuName IS638 'The CPU name if available.';639 640 641 661 COMMENT ON COLUMN TestBoxes.lCpuRevision IS 642 662 'Number identifying the CPU family/model/stepping/whatever. … … 665 685 666 686 687 COMMENT ON COLUMN TestBoxes.fRawMode IS 688 'Set if the test box does raw-mode tests.'; 689 690 667 691 COMMENT ON COLUMN TestBoxes.cMbMemory IS 668 692 'The (approximate) memory size in megabytes (rounded down to nearest 4 MB).'; … … 671 695 COMMENT ON COLUMN TestBoxes.cMbScratch IS 672 696 'The amount of scratch space in megabytes (rounded down to nearest 64 MB).'; 673 674 675 COMMENT ON COLUMN TestBoxes.sReport IS676 'Free form hardware and software report field.';677 697 678 698
Note:
See TracChangeset
for help on using the changeset viewer.