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

Disable chgrp event logs #1843

Merged
merged 5 commits into from Jan 7, 2014
Merged

Conversation

joshmoore
Copy link
Member

The creation of CHGRP event logs for the planeinfo elements of screens (or even just a&exposureTime=1.0&sizeT=10000.fake with ome/bioformats#795) was taking significant time. In fact the onRelease method was taking nearly half of the time just to publish events. Since CHGRP events do not take part in indexing (as do the DELETE event logs), this optimization should be generally safe.

To test:

  • touch and import a fake file of the form above and import (note: this generates a +2GB pixels file under OMERO4)
  • run bin/omero chgrp A /Image:... on the newly created image.

Without this PR, that move will take many minutes, if it does not OOM the server. With it, it should take less than a minute (e.g. on my fairly fast linux box, ~20 seconds, as opposed to the 5+ minutes I waited before Ctrl-C'ing it without the PR )

/cc @jburel, @pwalczysko, @chris-allan

@joshmoore
Copy link
Member Author

--rebased-to #1845

@@ -176,14 +176,12 @@ public void setEventContext(EventContext ec) {
this.ec = ec;
}

/**
* To reduce overhead, we're no longer copying this array.
* @return
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

return what? (-:

@mtbc
Copy link
Member

mtbc commented Dec 2, 2013

Those fakes each make 2.5GB of Pixels and chgrp successfully in under 45s on my notebook. Good to merge.

@mtbc
Copy link
Member

mtbc commented Jan 6, 2014

Thanks, Javadoc improvement is good, still good to merge.

joshmoore added a commit that referenced this pull request Jan 7, 2014
@joshmoore joshmoore merged commit daa2557 into ome:dev_4_4 Jan 7, 2014
@joshmoore joshmoore deleted the disable-chgrp-event-logs branch January 23, 2014 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants