Bug #39962 | ResultSet.findColumn performance enhancement | ||
---|---|---|---|
Submitted: | 9 Oct 2008 20:08 | Modified: | 14 Oct 2008 14:48 |
Reporter: | Alex Burgel | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / J | Severity: | S5 (Performance) |
Version: | 5.1.7 | OS: | Any |
Assigned to: | Mark Matthews | CPU Architecture: | Any |
[9 Oct 2008 20:08]
Alex Burgel
[9 Oct 2008 20:10]
Alex Burgel
patch to speed up findColumn based off svn revision 6775
Attachment: findColumn.patch (application/octet-stream, text), 1.22 KiB.
[10 Oct 2008 8:32]
Tonci Grgin
Hi Alex and thanks for patch provided. I will set the report to "Verified" now to speed up process. Mark, can you please take a look at patch provided and give your ruling? Alex, does your patch also reduce the number of "SHOW..." statements issued by Hibernate/cJ? It would be nice to know.
[10 Oct 2008 14:52]
Alex Burgel
no, it doesn't affect the number of 'SHOW' statements. it only speeds up the ResultSetImpl.findColumn method through some additional caching.
[13 Oct 2008 14:43]
Mark Matthews
Patch tested and applied.
[14 Oct 2008 14:48]
Tony Bedford
An entry was added to the 5.1.7 changelog: With large result sets ResultSet.findColumn became a performance bottleneck.