← Back to team overview

mahara-contributors team mailing list archive

[Bug 817796] Re: Slow upgrades for profile icons & group quotas

 

I don't think we can get any more optimized for MySQL.

MySQL doesn't have UPDATE FROM sql syntax (like what was done with the
postgres optimization).

Another option would be to do an UPDATE and a SELECT query inside the SET clause, but from the page http://dev.mysql.com/doc/refman/5.6/en/update.html down the bottom we have the following:
"Currently, you cannot update a table and select from the same table in a subquery."

This basically means we can't update the group table without SELECTing
the needed information before hand. Doing it this way makes a bulk
UPDATE statement difficult. Because of this, I think we should just keep
as is for mysql upgrades.

Thoughts?

Cheers,

Hugh

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
https://bugs.launchpad.net/bugs/817796

Title:
  Slow upgrades for profile icons & group quotas

Status in Mahara ePortfolio:
  Incomplete

Bug description:
  Three recent upgrades are very slow on large databases and are in need
  of a bit of a rewrite:

  - The upgrade to remove bad profileicon references from the user table
  - The upgrade to initialise group file quotas
  - The upgrade which moves existing profileicons into an 'images' folder.

  https://reviews.mahara.org/#change,528

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/817796/+subscriptions


References