sergiogonzalez/liferay-portal — pull request #143 by holatuwol (2012-02-22 21:50:44+00:00)
Title: test1

Hi Sergio, I found some major problems with the UpgradeImageGallery because the imageId checks always resulted in a full-table scan of DLFileEntry. So if there were 20,000 images in the image table, there would be 20,000 full table scans. I've rewritten the logic to preserve what I think was the original intent, but I'm not 100% sure what the original intent was. Could you take a look at the changes to see if they still address the issue you were trying to address when you introduced the upgrade code?