Skip to content

Commit

Permalink
Drupalcz#31 Truncate URL aliases. Delete votes without nodes.
Browse files Browse the repository at this point in the history
  • Loading branch information
radimklaska committed Sep 26, 2015
1 parent 17b1124 commit f28e035
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions slim.sql
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,10 @@ DELETE FROM location WHERE lid NOT IN (
SELECT lid FROM location_instance AS lid
);

# ToDo: Make these tables slimmer:
# node_authorship
# url_alias
# poll_votes
# Poll votes.
DELETE FROM poll_votes WHERE nid NOT IN (
SELECT nid FROM node AS nid
);

# No impact on migration, just making the DB smaller.
TRUNCATE TABLE ads;
Expand All @@ -180,3 +180,4 @@ TRUNCATE TABLE search_index;
TRUNCATE TABLE search_node_links;
TRUNCATE TABLE search_total;
TRUNCATE TABLE spam_tracker;
TRUNCATE TABLE url_alias;

0 comments on commit f28e035

Please sign in to comment.