Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TRUNK-4141 Using batch-fetch to load Obs and ObsGroup #448

Merged
merged 1 commit into from Nov 15, 2013

Conversation

shruthidipali
Copy link
Member

No description provided.

@djazayeri
Copy link
Member

The Obs.hbm.xml file has this already:

I believe that sets a batch-size of 25 for all fetches of obs, therefore the changes you're proposing here will have no effect. (Is that right?)

@shruthidipali
Copy link
Member Author

batch-size at the class level has no effect on collections. it has to be set explicitly on collections.

http://docs.jboss.org/hibernate/orm/3.3/reference/en/html/performance.html#performance-fetching-batch

@djazayeri
Copy link
Member

I could have sworn that when we were making performance improvements in OpenMRS 1.8, we determined that saying this on the class level also affected collections of this class. I don't understand the documentation as saying anything about whether class-level batching affects collection-level batching.

It won't hurt to put this on the collection also, so I'm fine merging this.

@djazayeri
Copy link
Member

@rkorytkowski @wluyima @dkayiwa whichever of you is community lead this week, can you make sure this gets merged (to master) and backported to at least 1.10.x and 1.9.x?

@shruthidipali
Copy link
Member Author

@djazayeri we confirmed this behaviour by enabling hibernate sql log. :)

dkayiwa added a commit that referenced this pull request Nov 15, 2013
TRUNK-4141 Using batch-fetch to load Obs and ObsGroup
@dkayiwa dkayiwa merged commit 0cb79bd into openmrs:1.9.x Nov 15, 2013
@shruthidipali
Copy link
Member Author

@dkayiwa can you also merge this to 1.10.x branch?

@dkayiwa
Copy link
Member

dkayiwa commented Nov 15, 2013

I did that and put the commit url on the ticket. :)

On Fri, Nov 15, 2013 at 3:47 PM, shruthidipali notifications@github.comwrote:

@dkayiwa https://github.com/dkayiwa can you also merge this to 1.10.x
branch?


Reply to this email directly or view it on GitHubhttps://github.com//pull/448#issuecomment-28566516
.

If we keep uppermost in our minds the unkind and unjust acts of others, we
shall find it impossible to love them as Christ has loved us; but if our
thoughts dwell upon the wondrous love and pity of Christ for us, the same
spirit will flow out to others.

@shruthidipali shruthidipali deleted the TRUNK-4141 branch November 15, 2013 15:16
@shruthidipali
Copy link
Member Author

thanks @dkayiwa

RandilaP pushed a commit to RandilaP/openmrs-core that referenced this pull request Jul 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants