Bug 748483
Summary: | Make dbsetup sequence id cache size configurable | ||||||
---|---|---|---|---|---|---|---|
Product: | [Other] RHQ Project | Reporter: | Robert Buck <rbuck> | ||||
Component: | Database | Assignee: | Robert Buck <rbuck> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Mike Foley <mfoley> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 4.0.1 | CC: | ccrouch, hrupp, jshaughn, rbuck | ||||
Target Milestone: | --- | ||||||
Target Release: | RHQ 4.3.0 | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | 728547 | ||||||
: | 748484 (view as bug list) | Environment: | |||||
Last Closed: | 2013-09-12 21:16:09 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | 728547 | ||||||
Bug Blocks: | 620933, 748484 | ||||||
Attachments: |
|
Description
Robert Buck
2011-10-24 15:18:15 UTC
Here is how to negative test this: +++ b/modules/core/dbutils/src/main/scripts/dbsetup/inventory-schema.xml @@ -36,7 +36,7 @@ <!-- NEW RESOURCE SUBCATEGORIES --> <table name="RHQ_RESOURCE_SUBCAT"> <column name="ID" default="sequence-only" initial="10001" - primarykey="true" required="true" type="INTEGER"/> + primarykey="true" required="true" type="INTEGER" sequencecachesize="WOOF"/> <column name="NAME" type="VARCHAR2" size="100"/> <column name="DISPLAY_NAME" type="VARCHAR2" size="100"/> Here is a positive test: +++ b/modules/core/dbutils/src/main/scripts/dbsetup/inventory-schema.xml @@ -36,7 +36,7 @@ <!-- NEW RESOURCE SUBCATEGORIES --> <table name="RHQ_RESOURCE_SUBCAT"> <column name="ID" default="sequence-only" initial="10001" - primarykey="true" required="true" type="INTEGER"/> + primarykey="true" required="true" type="INTEGER" sequencecachesize="64"/> <column name="NAME" type="VARCHAR2" size="100"/> <column name="DISPLAY_NAME" type="VARCHAR2" size="100"/> Created attachment 530087 [details]
Adds ability to flexibly configure sequence id cache sizes.
branch: bug/748483 commit 077a1b19bfdb4a4b814adf403488b2442d932e9a Author: Robert Buck <rbuck> Date: 2011-10-27 09:36:04 -0400 [BZ 748483] Make dbsetup sequence id cache size configurable. This seems to be done, although I believe we use the default of 10 everywhere still. Moreover, we use increments of 1 for all entities. If we plan on making perf enhancements for sequence cache sizes it should likely also include changes to the sequence increments for the relevant entities, as that has even more effect on perf, I think. See Constants.ALLOCATION_SIZE for more. Closing as CURRENTRELEASE |