Skip to content

Instantly share code, notes, and snippets.

@snelis
Created December 21, 2011 12:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save snelis/1505922 to your computer and use it in GitHub Desktop.
Save snelis/1505922 to your computer and use it in GitHub Desktop.
-- Empty tweet table
TRUNCATE TABLE `tweets_feeds`;
-- Empty tweet archive table
TRUNCATE TABLE `tweets_archive`;
-- Empty feeds archive table
TRUNCATE TABLE `predef_archives`
-- Delete all feeds which are archived
DELETE FROM `predef_feeds` WHERE `Archive` = 1;
-- Add index to the ReplyID column
ALTER TABLE `tweets_feeds` ADD INDEX (`ReplyID`);
-- Add index to the Active column
ALTER TABLE `predef_feeds` ADD INDEX (`Active`);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment