Skip to content

Commit

Permalink
Back porting to 1.10.x: N+1 select issue with Obs and ObsGroup -
Browse files Browse the repository at this point in the history
TRUNK-4141
  • Loading branch information
dkayiwa committed Dec 5, 2013
1 parent a0a573f commit bbae7bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -54,7 +54,7 @@
<one-to-many class="Order" />
</set>
<!-- bi-directional one-to-many association to Ob -->
<set name="obs" inverse="true" cascade="all" order-by="concept_id" access="field">
<set name="obs" inverse="true" cascade="all" order-by="concept_id" access="field" batch-size="25">
<key column="encounter_id" />
<one-to-many class="Obs" />
</set>
Expand Down
Expand Up @@ -70,7 +70,7 @@

<!-- one-to-many association to all obs in this grouping -->
<set name="groupMembers" inverse="true" cascade="all" order-by="obs_id"
access = "field">
access = "field" batch-size="25">
<key column="obs_group_id" />
<one-to-many class="Obs" />
</set>
Expand Down

0 comments on commit bbae7bf

Please sign in to comment.