Uploaded image for project: 'Cayenne'
  1. Cayenne
  2. CAY-1923

Optimize BatchTranslator - use fixed size array of BatchParameterBinding

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.0.M2
    • None
    • None

    Description

      The new BatchTranslator has this method:

      List<BatchParameterBinding> createBindings(BatchQueryRow row);

      The list contents differ from row to row (e.g. due to NULL handling). This means we need to create a new List and new BatchParameterBindings, which results in an inefficiency in the default mode of operation. This also makes crypto-related interception doubly inefficient, as we'll need to compile encryptors for each row individually. So need to batch this somehow. E.g. by allocating a single BatchParameterBinding[], filling it with bindings and then reusing it for each row. Excluded bindings for a given row will be marked with some flag. This will also allow to precompile encryptors in the crypto module.

      Attachments

        Activity

          People

            andrus Andrus Adamchik
            andrus Andrus Adamchik
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: