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

Clobs on insert using streams should not instantiate into memory

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 10.0.2.2, 10.1.2.1, 10.2.1.6
    • 10.2.1.6
    • JDBC, Store
    • None
    • all
    • Performance

    Description

      Currently in derby, for an insert on a clob using setCharacterStream what will happen is , the entire stream will be materialized into a char array and sent to store for the insert.

      see - SQLVarChar.normalize, where getString() is called and SQLChar.getString() will materiliaze the entire stream into a char array ( SQLChar.readExternal).

      The store layer must actually drive the streaming.

      Attachments

        1. Derby352.diff.txt
          102 kB
          Sunitha Kambhampati
        2. Derby352.stat.txt
          1 kB
          Sunitha Kambhampati

        Issue Links

          Activity

            People

              skambha Sunitha Kambhampati
              skambha Sunitha Kambhampati
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: