Uploaded image for project: 'Hibernate ORM'
  1. HHH-11653

addQueryHint should apply hint syntax when calling executeUpdate

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 4.3.11
    • Fix Version/s: None
    • Component/s: hibernate-core
    • Labels:
      None
    • Environment:
      Oracle 12c
    • Last commented by a user?:
      true
    • Sprint:

      Description

      For some of our larger update and deletes, it would be nice if addQueryHint() applied to executeUpdate statements as well.

      Specifically, in Oracle 12c, we make heavy use of the ENABLE_PARALLEL_DML and the PARALLEL hints for large deletes and updates.

      Using stmt.addQueryHint("ENABLE_PARALLEL_DML") would be super useful so we wouldn't need to resort to using pure SQL to add hints.

      It seems natural to assume the hints would apply to all types of Statements, not just selects.

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                longwa Aaron Long
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: