Uploaded image for project: 'Olio'
  1. Olio
  2. OLIO-14

Several queries need to be improved for better performance.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • None
    • php-app
    • None
    • Any

    Description

      Subqueries in Tags_Controller.php and taggedEvents.php are not optimal for MySQL below 6.0. This should be changed to more efficient joins as characterized by Richard Smith's blog (http://blogs.sun.com/wizard/).

      Also the query at friends.php:60 should be changed from:

      select count as count from PERSON as p, PERSON_PERSON as pp where pp.person_username='$user' and p.username=pp.friends_username and pp.is_accepted=1

      to

      select count as count from PERSON_PERSON as pp where pp.person_username='$user' and pp.is_accepted=1

      Attachments

        Activity

          People

            akara Akara Sucharitakul
            akara Akara Sucharitakul
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h
                1h