[flymine-dev] Objectstore summarisation improvements
Kim Rutherford
flymine-dev at flymine.org
Thu, 17 Jan 2008 15:51:17 +0000
Hi.
We've recently made some improvements to the InterMine code that
performs the Object store summarisation (see:
http://www.intermine.org/wiki/WebappRelease#Objectstoresummarisation).
If you have been making your own build of a webapp you will have seen
the message "Summarising object store"... which is followed by long
wait.
The code has been improved in two ways:
The summary is now stored in the database rather than in a file (which was
dbmodel/dist/objectstoresummary.properties). This means that if you do a
"ant clean-all" command you won't have another long wait for the summary
properties file to be recreated - it will be retrieved from the database.
The second change is the addition of a post-process task that can be added
to the project.xml that will create the summary as part of the build. All
that is needed is to add the line:
<post-process name="summarise-objectstore"/>
to the end of the <post-processing> section of your project.xml
Added the post-process is recommended as it will save time while
deploying the webapp as the summarisation will already be done. It
also provides a way to re-summarise (needed if any data changes), by
running the `summarise-objectstore` post-process (in the
<mine>/postprocess directory):
ant -Daction=summarise-objectstore
Note that these changes are currently only on the subversion trunk. We
won't be changing older branches. The changes will be in the version 11.0
branch.
Kim.