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

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.2
    • Fix Version/s: 0.1, 0.2
    • Component/s: rails-loader
    • Labels:
    • Environment:
      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

            • Assignee:
              shanti Shanti Subramanyam
              Reporter:
              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