Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-3768

Make EmbedBlob.length use skip instead of read

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 10.5.1.1
    • Fix Version/s: 10.4.2.0, 10.5.1.1
    • Component/s: JDBC
    • Labels:
      None
    • Bug behavior facts:
      Performance

      Description

      EmbedBlob.length uses read to process the whole Blob when the length has not been encoded at the head of the stream.
      Using skip instead of read can lead to better performance.

      I also plan to make some minor cleanups under this issue; JavaDoc and to rename a variable.

        Attachments

          Activity

            People

            • Assignee:
              kristwaa Kristian Waagan
              Reporter:
              kristwaa Kristian Waagan

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment