Grails
  1. Grails
  2. GRAILS-8881

Regression: 2 db-queries are fired for each "unique:true"-constraint in a domain class

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.0.1
    • Fix Version/s: None
    • Component/s: Persistence
    • Environment:
      grails 2.0.1, JVM: 1.6.0_26, kubuntu 10.04.4 LTS

      Description

      On every save / update 2 select queries are fired against the db for each "unique:true" - constraint specified in a domain class.

      While in grails 1.3.7 the scaffolded app fired only 1 select query on save and update actions - grails 2.0.1 now needs 2 selects
      to verify uniqueness.

      This is described in detail on the following link

      @see http://grails.1312388.n4.nabble.com/unique-constraint-produces-2-selects-in-grails-2-0-1-td4438027.html

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Konstantinos Kostarellis
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Development