In case you have your own slow SQL query, you can optimize it automatically here.
For the query above, the following recommendations will be helpful as part of the SQL tuning process.
You'll find 3 sections below:
ALTER TABLE `updates` ADD INDEX `updates_idx_uid_fk_type` (`uid_fk`,`type`);
ALTER TABLE `updates` ADD INDEX `updates_idx_created` (`created`);
ALTER TABLE `users` ADD INDEX `users_idx_college_uid` (`college`,`uid`);
SELECT
b.type,
b.owner,
b.update_img,
b.ALBUM_ID,
b.last_comment,
a.uid,
a.first_name,
a.last_name,
a.gender,
a.thumb_img,
b.msg_id,
b.message,
b.created,
b.POST_PRIVACY
FROM
users AS a,
updates AS b,
LIKED AS c
WHERE
b.uid_fk = a.uid
AND b.type <> 'FRIEND_RELATIONSHIP'
AND b.created < $time
AND b.type <> 'FAMILIAR_RELATIONSHIP'
AND a.college = '$college'
AND b.POST_PRIVACY <> '4'
AND b.POST_PRIVACY <> '5'
AND b.created >= $tstamp
ORDER BY
b.created DESC LIMIT 100