Grails Amazon S3 0.7.4 Released

Lee Butts's picture

A new version of the S3 plugin is now available. This was primarily a Hibernate mapping update to improve performance after excessive querying was noticed in a client application using the old version. As such, there are some database schema changes to required when you upgrade your application.

Release Notes

  • Versioning has been removed from S3Asset, as such you should drop the version column from the s3asset table
  • Versoning was added to the S3Asset options collection. You will need to add a version column (bigint) with a default of zero to s3asset_options
  • A foreign key on the options column and index on options_idx have been added to the s3asset_options table. This should increase performance for applications with a large number of assets.
    You may need to remove old rows from s3asset_options that do not reference a valid S3Asset due to the previous mapping not properly cascading deletes in some cases
  • Hibernate second level caching is now enabled for S3Asset and it's options. If you are not using second level caching (you'll get an error if you're not), you can disable this by setting aws.disableHibernateCaching to true in Config.groovy