Skip to content

Commit bbbd572

Browse files
committedNov 15, 2013
Foward porting to master: Using batch-fetch to load Obs and ObsGroup -
TRUNK-4141 author:shruthidipali
1 parent ce227b2 commit bbbd572

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎api/src/main/resources/org/openmrs/api/db/hibernate/Encounter.hbm.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
<one-to-many class="Order" />
5454
</set>
5555
<!-- bi-directional one-to-many association to Ob -->
56-
<set name="obs" inverse="true" cascade="all" order-by="concept_id" access="field">
56+
<set name="obs" inverse="true" cascade="all" order-by="concept_id" access="field" batch-size="25">
5757
<key column="encounter_id" />
5858
<one-to-many class="Obs" />
5959
</set>

‎api/src/main/resources/org/openmrs/api/db/hibernate/Obs.hbm.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070

7171
<!-- one-to-many association to all obs in this grouping -->
7272
<set name="groupMembers" inverse="true" cascade="all" order-by="obs_id"
73-
access = "field">
73+
access = "field" batch-size="25">
7474
<key column="obs_group_id" />
7575
<one-to-many class="Obs" />
7676
</set>

0 commit comments

Comments
 (0)
Please sign in to comment.