summaryrefslogtreecommitdiff
path: root/db/096to097.sql
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-12-17 12:47:50 -0800
committerBrion Vibber <brion@pobox.com>2010-12-17 12:49:02 -0800
commit53dd2583fcf5d026f682b0966e87dbdd35fc19a8 (patch)
tree3a4c45fce7c543893e24684eff98a5f2dbaef6c9 /db/096to097.sql
parent5de86f0ccc0208c2fc1a3924e4142bcac9679893 (diff)
Switch public timeline to new sorting; new index notice_created_id_is_local_idx
http://status.net/wiki/Sorting_changes
Diffstat (limited to 'db/096to097.sql')
-rw-r--r--db/096to097.sql3
1 files changed, 3 insertions, 0 deletions
diff --git a/db/096to097.sql b/db/096to097.sql
new file mode 100644
index 000000000..53f4e97c9
--- /dev/null
+++ b/db/096to097.sql
@@ -0,0 +1,3 @@
+-- Add indexes for sorting changes in 0.9.7
+-- Allows sorting public timeline by timestamp efficiently
+alter table notice add index notice_created_id_is_local_idx (created,id,is_local);