ALTER TABLE `eventlog` ADD INDEX `eventlog_entity` (`entity_type`, `entity_id`);