[ 
https://issues.apache.org/jira/browse/DERBY-5494?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13291063#comment-13291063
 ] 

Mamta A. Satoor edited comment on DERBY-5494 at 6/7/12 6:36 PM:
----------------------------------------------------------------

For both identity column and sequences, I ran two kinds of tests as explained 
below. I have run these tests 3 times each for 10.9 release(10.9.1.0) candidate 
and 10.8.1.2 release and have included the results below. The tests were run 
with write caching disabled.

The 2 kinds of tests for sequences and identity columns were as follows
1)default behavior : For the test, when we let it pick the default behavior, 
number of threads default to 1, preallocate defaults to 100 on 10.9 and 5 on 
10.8, numberOfGenerator defaults to 1, tablesPerGenerator defaults to 1 and 
insertsPerTransaction default to 1
2)In this kind of run, I passed following paramters to the test.- number of 
threads 1, preallocation of 1,  numberOfGenerator to 1, tablesPerGenerator to 1 
and insertsPerTransaction to 100


Identity test(default behavior)
java -Dderby.system.home=./systest/db1 
org.apache.derbyTesting.perf.clients.Runner -driver 
org.apache.derby.jdbc.EmbeddedDriver -init -load seq_gen -load_opts 
debugging=0,identityTest=1 -gen b2b
-----------------------------------------------------------------------------------------------------------
                                              10.9.1.0|                   
10.8.1.2                   
-----------------------------------------------------------------------------------------------------------
 - of transactions | Average Thruput       | - of transactions | Average 
Thruput 
-----------------------------------------------------------------------------------------------------------
       5015        |   83.58333333333333  |         3889           |    
64.81666666666666  
-----------------------------------------------------------------------------------------------------------
       4697        |   78.28333333333333  |         4578           |    76.3  
-----------------------------------------------------------------------------------------------------------
       5150        |   85.83333333333333  |         5016           |    83.6  
-----------------------------------------------------------------------------------------------------------


Sequence test(default behavior)
java -Dderby.system.home=./systest/db4 
org.apache.derbyTesting.perf.clients.Runner -driver 
org.apache.derby.jdbc.EmbeddedDriver -init -load seq_gen -load_opts 
debugging=0,identityTest=0 -gen b2b 
-----------------------------------------------------------------------------------------------------------
                                              10.9.1.0|                   
10.8.1.2                   
-----------------------------------------------------------------------------------------------------------
 - of transactions | Average Thruput       | - of transactions | Average 
Thruput 
-----------------------------------------------------------------------------------------------------------
      5228        |    87.13333333333334  |         4330           |    
72.16666666666667  
-----------------------------------------------------------------------------------------------------------
      5206        |    86.76666666666667  |         5026           |    
83.76527057882369
-----------------------------------------------------------------------------------------------------------
      5010        |    83.5                               |         4489        
   |    74.81541974300428  
-----------------------------------------------------------------------------------------------------------


Identity test(number of threads 1, preallocation of 1,  numberOfGenerator to 1, 
tablesPerGenerator to 1 and insertsPerTransaction to 100)
java -Dderby.system.home=./systest/db7 -Dderby.language.sequence.preallocator=1 
org.apache.derbyTesting.perf.clients.Runner -driver 
org.apache.derby.jdbc.EmbeddedDriver -init -load seq_gen -load_opts 
debugging=0,numberOfGenerators=1,tablesPerGenerator=1,insertsPerTransaction=100,identityTest=1
 -gen b2b -threads 1
-----------------------------------------------------------------------------------------------------------
                                              10.9.1.0|                   
10.8.1.2                   
-----------------------------------------------------------------------------------------------------------
 - of transactions | Average Thruput       | - of transactions | Average 
Thruput 
-----------------------------------------------------------------------------------------------------------
       1537        |   25.616666666666667 |         1086           |    
18.099698338361026
-----------------------------------------------------------------------------------------------------------
       1628        |   27.133333333333333 |         1518           |    25.3
-----------------------------------------------------------------------------------------------------------
       1514        |   25.230810252308103 |         1472           |    
24.533333333333335
-----------------------------------------------------------------------------------------------------------



Sequence test(number of threads 1, preallocation of 1,  numberOfGenerator to 1, 
tablesPerGenerator to 1 and insertsPerTransaction to 100)
java -Dderby.system.home=./systest/db11 
-Dderby.language.sequence.preallocator=1 
org.apache.derbyTesting.perf.clients.Runner -driver 
org.apache.derby.jdbc.EmbeddedDriver -init -load seq_gen -load_opts 
debugging=0,numberOfGenerators=1,tablesPerGenerator=1,insertsPerTransaction=100,identityTest=0
 -gen b2b -threads 1 
-----------------------------------------------------------------------------------------------------------
                                              10.9.1.0|                   
10.8.1.2                   
-----------------------------------------------------------------------------------------------------------
 - of transactions | Average Thruput       | - of transactions | Average 
Thruput 
-----------------------------------------------------------------------------------------------------------
        50         |   0.8333333333333334 |         3054           |   50.9
-----------------------------------------------------------------------------------------------------------
        47         |   0.7833333333333333 |         3033           |   50.55
-----------------------------------------------------------------------------------------------------------
        49         |   0.8166666666666667 |         3000           |   50.0
-----------------------------------------------------------------------------------------------------------


                
      was (Author: mamtas):
    For both identity column and sequences, I ran two kinds of tests as 
explained below. I have run these tests 3 times each for 10.9 release(10.9.1.0) 
candidate and 10.8.1.2 release and have included the results below. The tests 
were run with write caching disabled.

The 2 kinds of tests for sequences and identity columns were as follows
1)default behavior : For the test, when we let it pick the default behavior, 
number of threads default to 1, preallocate defaults to 100 on 10.9 and 5 on 
10.8, numberOfGenerator defaults to 1, tablesPerGenerator defaults to 1 and 
insertsPerTransaction default to 1
2)In this kind of run, I passed following paramters to the test.- number of 
threads 1, preallocation of 1,  numberOfGenerator to 1, tablesPerGenerator to 1 
and insertsPerTransaction to 100


Identity test(default behavior)
java -Dderby.system.home=./systest/db1 
org.apache.derbyTesting.perf.clients.Runner -driver 
org.apache.derby.jdbc.EmbeddedDriver -init -load seq_gen -load_opts 
debugging=0,identityTest=1 -gen b2b
-----------------------------------------------------------------------------------------------------------
                                              10.9.1.0|                   
10.8.1.2                   
-----------------------------------------------------------------------------------------------------------
 - of transactions | Average Thruput       | - of transactions | Average 
Thruput 
-----------------------------------------------------------------------------------------------------------
       5015        |   83.58333333333333  |         3889           |    
64.81666666666666  
-----------------------------------------------------------------------------------------------------------
       4697        |   78.28333333333333  |         4578           |    76.3  
-----------------------------------------------------------------------------------------------------------
       5150        |   85.83333333333333  |         5016           |    83.6  
-----------------------------------------------------------------------------------------------------------


Sequence test(default behavior)
java -Dderby.system.home=./systest/db4 
org.apache.derbyTesting.perf.clients.Runner -driver 
org.apache.derby.jdbc.EmbeddedDriver -init -load seq_gen -load_opts 
debugging=0,identityTest=0 -gen b2b 
-----------------------------------------------------------------------------------------------------------
                                                      10.9|                   
10.8                   
-----------------------------------------------------------------------------------------------------------
 - of transactions | Average Thruput       | - of transactions | Average 
Thruput 
-----------------------------------------------------------------------------------------------------------
      5228        |    87.13333333333334  |         4330           |    
72.16666666666667  
-----------------------------------------------------------------------------------------------------------
      5206        |    86.76666666666667  |         5026           |    
83.76527057882369
-----------------------------------------------------------------------------------------------------------
      5010        |    83.5                               |         4489        
   |    74.81541974300428  
-----------------------------------------------------------------------------------------------------------


Identity test(number of threads 1, preallocation of 1,  numberOfGenerator to 1, 
tablesPerGenerator to 1 and insertsPerTransaction to 100)
java -Dderby.system.home=./systest/db7 -Dderby.language.sequence.preallocator=1 
org.apache.derbyTesting.perf.clients.Runner -driver 
org.apache.derby.jdbc.EmbeddedDriver -init -load seq_gen -load_opts 
debugging=0,numberOfGenerators=1,tablesPerGenerator=1,insertsPerTransaction=100,identityTest=1
 -gen b2b -threads 1
-----------------------------------------------------------------------------------------------------------
                                                      10.9|                   
10.8                   
-----------------------------------------------------------------------------------------------------------
 - of transactions | Average Thruput       | - of transactions | Average 
Thruput 
-----------------------------------------------------------------------------------------------------------
       1537        |   25.616666666666667 |         1086           |    
18.099698338361026
-----------------------------------------------------------------------------------------------------------
       1628        |   27.133333333333333 |         1518           |    25.3
-----------------------------------------------------------------------------------------------------------
       1514        |   25.230810252308103 |         1472           |    
24.533333333333335
-----------------------------------------------------------------------------------------------------------



Sequence test(number of threads 1, preallocation of 1,  numberOfGenerator to 1, 
tablesPerGenerator to 1 and insertsPerTransaction to 100)
java -Dderby.system.home=./systest/db11 
-Dderby.language.sequence.preallocator=1 
org.apache.derbyTesting.perf.clients.Runner -driver 
org.apache.derby.jdbc.EmbeddedDriver -init -load seq_gen -load_opts 
debugging=0,numberOfGenerators=1,tablesPerGenerator=1,insertsPerTransaction=100,identityTest=0
 -gen b2b -threads 1 
-----------------------------------------------------------------------------------------------------------
                                                      10.9|                   
10.8                   
-----------------------------------------------------------------------------------------------------------
 - of transactions | Average Thruput       | - of transactions | Average 
Thruput 
-----------------------------------------------------------------------------------------------------------
        50         |   0.8333333333333334 |         3054           |   50.9
-----------------------------------------------------------------------------------------------------------
        47         |   0.7833333333333333 |         3033           |   50.55
-----------------------------------------------------------------------------------------------------------
        49         |   0.8166666666666667 |         3000           |   50.0
-----------------------------------------------------------------------------------------------------------


                  
> Same value returned by successive calls to a sequence generator flanking an 
> unorderly shutdown.
> -----------------------------------------------------------------------------------------------
>
>                 Key: DERBY-5494
>                 URL: https://issues.apache.org/jira/browse/DERBY-5494
>             Project: Derby
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 10.6.1.0, 10.6.2.1, 10.7.1.1, 10.8.1.2, 10.8.2.2, 
> 10.9.1.0
>            Reporter: Rick Hillegas
>            Assignee: Mike Matrigali
>              Labels: derby_backport_reject_10_8, derby_triage10_9
>             Fix For: 10.9.1.0, 10.10.0.0
>
>         Attachments: derby-5494_3.diff, derby-5494_diff_1a.txt, 
> derby-5494_diff_2.txt
>
>
> The following sequence of steps causes a sequence generator to return the 
> same value on successive NEXT VALUE FOR calls.
> 1) Bring up ij and issue the following commands:
> connect 'jdbc:derby:db;create=true';
> create sequence s;
> values next value for s; 
> 2) Control-c out of ij so that the engine comes down hard without an orderly 
> shutdown.
> 3) Now bring up ij again and issue the following commands:
> connect 'jdbc:derby:db';
> values next value for s; 
> Thanks to Knut for finding this one.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to