Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
0.2
-
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.