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

A query for taggings table is low efficient due to lack of appropriate indexes

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.2
    • 0.1, 0.2
    • rails-loader
    • Ubuntu Linux, Ruby On Rails

    Description

      A query in AddEvent transaction:

      SELECT * FROM `taggings` WHERE (`taggings`.taggable_id = 76 AND `taggings`.taggable_type = 'Event');

      requires indexes on taggable_id and tggable_type to improve its performance. Otherwise, the query needs to scan the whole table all the time.

      Attachments

        Activity

          People

            shanti Shanti Subramanyam
            alpha_roc Liang Zhao
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

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