ALTER IGNORE TABLE tu_links ADD UNIQUE KEY `url` (`url`,`post_id`, `network`);

ALTER IGNORE TABLE tu_posts ADD UNIQUE KEY `postnetwk` (`post_id`, `network`);