From 67d5b70554d644967a981e34e907d6bec11aec31 Mon Sep 17 00:00:00 2001 From: Chad Whitacre Date: Wed, 16 Apr 2014 11:36:03 -0400 Subject: [PATCH] Append index to schema.sql; #1417 --- schema.sql | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/schema.sql b/schema.sql index 3bf7f4e87b..ae17e375f9 100644 --- a/schema.sql +++ b/schema.sql @@ -1205,3 +1205,12 @@ BEGIN; ALTER TABLE homepage_top_givers ADD COLUMN statement text; ALTER TABLE homepage_top_givers ADD COLUMN number text; END; + + +------------------------------------------------------------------------------- +-- https://github.com/gittip/www.gittip.com/issues/1417 + +CREATE INDEX transfers_tipper_tippee_timestamp_idx + ON transfers + USING btree + (tipper, tippee, timestamp DESC);