You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Knut Anders Hatlen (JIRA)" <ji...@apache.org> on 2011/02/24 18:20:39 UTC

[jira] Created: (DERBY-5067) Performance regression tests should populate tables before creating indexes

Performance regression tests should populate tables before creating indexes
---------------------------------------------------------------------------

                 Key: DERBY-5067
                 URL: https://issues.apache.org/jira/browse/DERBY-5067
             Project: Derby
          Issue Type: Improvement
          Components: Test
    Affects Versions: 10.8.0.0
            Reporter: Knut Anders Hatlen
            Assignee: Knut Anders Hatlen


I've noticed that the results from some of the performance regression tests have become more unstable the last two weeks. See for example here: http://home.online.no/~olmsan/derby/perf/select_30d.html

I suspect it's because the automatic index statistics thread is running (the instability started at about the same time as it was enabled). We should make the test clients create indexes after the tables have been populated so that the statistics will be up to date and no work in the background is needed.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (DERBY-5067) Performance regression tests should populate tables before creating indexes

Posted by "Knut Anders Hatlen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-5067?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Knut Anders Hatlen updated DERBY-5067:
--------------------------------------

    Attachment: pk.diff

Attaching a patch that moves the definition of primary key constraints from the table definitions to separate ALTER TABLE statements after the tables have been populated. It looks like CREATE INDEX statements already are placed after populating the tables.

> Performance regression tests should populate tables before creating indexes
> ---------------------------------------------------------------------------
>
>                 Key: DERBY-5067
>                 URL: https://issues.apache.org/jira/browse/DERBY-5067
>             Project: Derby
>          Issue Type: Improvement
>          Components: Test
>    Affects Versions: 10.8.0.0
>            Reporter: Knut Anders Hatlen
>            Assignee: Knut Anders Hatlen
>         Attachments: pk.diff
>
>
> I've noticed that the results from some of the performance regression tests have become more unstable the last two weeks. See for example here: http://home.online.no/~olmsan/derby/perf/select_30d.html
> I suspect it's because the automatic index statistics thread is running (the instability started at about the same time as it was enabled). We should make the test clients create indexes after the tables have been populated so that the statistics will be up to date and no work in the background is needed.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (DERBY-5067) Performance regression tests should populate tables before creating indexes

Posted by "Knut Anders Hatlen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-5067?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Knut Anders Hatlen updated DERBY-5067:
--------------------------------------

    Attachment: select.png

I ran the sr_select test 100 times both with and without the patch, 30 sec warmup, 60 sec data collection. The attached graph shows the results. With the patch, the results are consistently higher than without the patch.

Note that the indexes here are for single-column primary key constraints, so a fix for DERBY-3790 would probably also have avoided the background work in this case.

> Performance regression tests should populate tables before creating indexes
> ---------------------------------------------------------------------------
>
>                 Key: DERBY-5067
>                 URL: https://issues.apache.org/jira/browse/DERBY-5067
>             Project: Derby
>          Issue Type: Improvement
>          Components: Test
>    Affects Versions: 10.8.0.0
>            Reporter: Knut Anders Hatlen
>            Assignee: Knut Anders Hatlen
>         Attachments: pk.diff, select.png
>
>
> I've noticed that the results from some of the performance regression tests have become more unstable the last two weeks. See for example here: http://home.online.no/~olmsan/derby/perf/select_30d.html
> I suspect it's because the automatic index statistics thread is running (the instability started at about the same time as it was enabled). We should make the test clients create indexes after the tables have been populated so that the statistics will be up to date and no work in the background is needed.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Resolved: (DERBY-5067) Performance regression tests should populate tables before creating indexes

Posted by "Knut Anders Hatlen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-5067?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Knut Anders Hatlen resolved DERBY-5067.
---------------------------------------

       Resolution: Fixed
    Fix Version/s: 10.8.0.0

Committed revision 1074449.

> Performance regression tests should populate tables before creating indexes
> ---------------------------------------------------------------------------
>
>                 Key: DERBY-5067
>                 URL: https://issues.apache.org/jira/browse/DERBY-5067
>             Project: Derby
>          Issue Type: Improvement
>          Components: Test
>    Affects Versions: 10.8.0.0
>            Reporter: Knut Anders Hatlen
>            Assignee: Knut Anders Hatlen
>             Fix For: 10.8.0.0
>
>         Attachments: pk.diff, select.png
>
>
> I've noticed that the results from some of the performance regression tests have become more unstable the last two weeks. See for example here: http://home.online.no/~olmsan/derby/perf/select_30d.html
> I suspect it's because the automatic index statistics thread is running (the instability started at about the same time as it was enabled). We should make the test clients create indexes after the tables have been populated so that the statistics will be up to date and no work in the background is needed.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Re: [jira] Closed: (DERBY-5067) Performance regression tests should populate tables before creating indexes

Posted by "Dag H. Wanvik" <da...@oracle.com>.
dag.wanvik@oracle.com (Dag H. Wanvik) writes:

> Jeg får disse rapportene, men det er tungt å lese dem (rar
> linjebrekking, ingen grafikk).. hva gjør du får å raskt se hva som er
> trenden?

Oops, sorry about that Norwegian, the mail was intended for Knut, I just
asked how one is able to easily discern trends in the raw data, the
reports I see are just columnar data, no graphs.

Dag

Re: [jira] Closed: (DERBY-5067) Performance regression tests should populate tables before creating indexes

Posted by "Dag H. Wanvik" <da...@oracle.com>.
dag.wanvik@oracle.com (Dag H. Wanvik) writes:

> Jeg får disse rapportene, men det er tungt å lese dem (rar
> linjebrekking, ingen grafikk).. hva gjør du får å raskt se hva som er
> trenden?

Oops, sorry about that Norwegian, the mail was intended for Knut, I just
asked how one is able to easily discern trends in the raw data, the
reports I see are just columnar data, no graphs.

Dag

Re: [jira] Closed: (DERBY-5067) Performance regression tests should populate tables before creating indexes

Posted by "Dag H. Wanvik" <da...@oracle.com>.
"Knut Anders Hatlen (JIRA)" <ji...@apache.org> writes:

>      [
> https://issues.apache.org/jira/browse/DERBY-5067?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
> ]
>
> Knut Anders Hatlen closed DERBY-5067.

Jeg får disse rapportene, men det er tungt å lese dem (rar
linjebrekking, ingen grafikk).. hva gjør du får å raskt se hva som er
trenden?

Dag


> -------------------------------------
>
>
> The results seem to have stabilized at the same level as before the
> enabling of istat. Closing the issue.
>
>> Performance regression tests should populate tables before creating indexes
>> ---------------------------------------------------------------------------
>>
>>                 Key: DERBY-5067
>>                 URL: https://issues.apache.org/jira/browse/DERBY-5067
>>             Project: Derby
>>          Issue Type: Improvement
>>          Components: Test
>>    Affects Versions: 10.8.0.0
>>            Reporter: Knut Anders Hatlen
>>            Assignee: Knut Anders Hatlen
>>             Fix For: 10.8.0.0
>>
>>         Attachments: pk.diff, select.png
>>
>>
>> I've noticed that the results from some of the performance regression tests have become more unstable the last two weeks. See for example here: http://home.online.no/~olmsan/derby/perf/select_30d.html
>> I suspect it's because the automatic index statistics thread is running (the instability started at about the same time as it was enabled). We should make the test clients create indexes after the tables have been populated so that the statistics will be up to date and no work in the background is needed.

[jira] Closed: (DERBY-5067) Performance regression tests should populate tables before creating indexes

Posted by "Knut Anders Hatlen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-5067?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Knut Anders Hatlen closed DERBY-5067.
-------------------------------------


The results seem to have stabilized at the same level as before the enabling of istat. Closing the issue.

> Performance regression tests should populate tables before creating indexes
> ---------------------------------------------------------------------------
>
>                 Key: DERBY-5067
>                 URL: https://issues.apache.org/jira/browse/DERBY-5067
>             Project: Derby
>          Issue Type: Improvement
>          Components: Test
>    Affects Versions: 10.8.0.0
>            Reporter: Knut Anders Hatlen
>            Assignee: Knut Anders Hatlen
>             Fix For: 10.8.0.0
>
>         Attachments: pk.diff, select.png
>
>
> I've noticed that the results from some of the performance regression tests have become more unstable the last two weeks. See for example here: http://home.online.no/~olmsan/derby/perf/select_30d.html
> I suspect it's because the automatic index statistics thread is running (the instability started at about the same time as it was enabled). We should make the test clients create indexes after the tables have been populated so that the statistics will be up to date and no work in the background is needed.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira