From f28e0358f1fd4c42044685c43735064db0bc3e58 Mon Sep 17 00:00:00 2001 From: Radim Klaska Date: Sat, 26 Sep 2015 17:42:48 +0200 Subject: [PATCH] #31 Truncate URL aliases. Delete votes without nodes. --- slim.sql | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/slim.sql b/slim.sql index de697311b..992b144bd 100644 --- a/slim.sql +++ b/slim.sql @@ -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; @@ -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;