Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
None
-
None
-
Low
-
Performance
Description
On a getXXX() method the column position is checked in:
Once in EmbedResultSet.getColumn()
Twice in ValueRow.getColumn()
- once using explict code
- once implicitly when accessing the DataValueDescriptor array
Can reduce to once by solely relying on the array bounds checking. Then change the defined api to Row.getColumn to state that it throws IndexOutOfBoundsException for an invalid column. EmbedResultSet.getColumn() then can catch that exception and throw the required SQLException.
Probably need similar changes on the setXXX() methods and other getXXX methods and need to see how Row.getColumn() is used within the language layer.
Attachments
Attachments
Issue Links
- is related to
-
DERBY-1876 Investigate overhead of JDBC layer and compiled activation code for simple embedded read-only, forward ResultSets
- Closed