[ 
https://issues.apache.org/jira/browse/DERBY-2493?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Knut Anders Hatlen updated DERBY-2493:
--------------------------------------

    Attachment: derby-2493-assert.stat
                derby-2493-assert.diff

Attaching patch (derby-2493-assert) which creates a new assert method 
JDBC.assertUnorderedResultSet() which is similar to assertFullResultSet() only 
that it doesn't care about the order of the result set. Also made two test 
cases (one in DistinctTest and one in ResultSetsFromPreparedStatementTest) use 
the new method to prevent them from failing when the Hashtable in 
BackingStoreHashtable is replaced with a HashMap.

> Use unsynchronized collections in BackingStoreHashtable
> -------------------------------------------------------
>
>                 Key: DERBY-2493
>                 URL: https://issues.apache.org/jira/browse/DERBY-2493
>             Project: Derby
>          Issue Type: Improvement
>          Components: Performance, Store
>    Affects Versions: 10.3.0.0
>            Reporter: Knut Anders Hatlen
>         Assigned To: Knut Anders Hatlen
>            Priority: Minor
>         Attachments: derby-2493-assert.diff, derby-2493-assert.stat
>
>
> BackingStoreHashtable uses a Vector and a Hashtable, but doesn't need the 
> synchronization provided by these classes (I think). Replacing them with 
> ArrayList and HashMap could improve performance for some kinds of operations.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to