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

Add cut-off and truncation logic to streaming classes in the embedded driver

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 10.2.1.6
    • 10.2.1.6
    • JDBC
    • None
    • Normal

    Description

      When streaming data to Derby, the application stream will be wrapped in a Derby-specific stream to convert the data to the correct representation. At a minimum, this consists of getting the data to the on-disk format used by Derby.

      The wrapping stream can be extended to provide the following features at an earlier stage:
      a) Data cut-off when the maximum allowed size is exceeded
      b) Truncation of trailing blanks where allowed

      Both features can reduce the amount of data needed to be kept in memory on insertion.
      Implementing this will require additional column/data type information in the streaming class(es). The implementation must be able to handle streams for which the length is specified and also streams with unknown/unspecified length.

      Attachments

        1. derby-1473-2c-streamingtests.diff
          82 kB
          Kristian Waagan
        2. derby-1473-1c-streaming.diff
          28 kB
          Kristian Waagan
        3. derby-1473-1b-streaming.diff
          27 kB
          Kristian Waagan
        4. derby-1473-2b-streamingtests.diff
          83 kB
          Kristian Waagan
        5. derby-1473-2a-streamingtests.diff
          82 kB
          Kristian Waagan
        6. derby-1473-2a-streamingtests.stat
          0.9 kB
          Kristian Waagan
        7. derby-1473-1a-streaming.diff
          26 kB
          Kristian Waagan
        8. derby-1473-1a-streaming.stat
          0.4 kB
          Kristian Waagan

        Issue Links

          Activity

            People

              kristwaa Kristian Waagan
              kristwaa Kristian Waagan
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: