]> git.mxchange.org Git - quix0rs-gnu-social.git/commit
Adjusting indexes to make favorites query more efficient, based on feedback from...
authorBrion Vibber <brion@pobox.com>
Tue, 10 Nov 2009 16:23:24 +0000 (08:23 -0800)
committerBrion Vibber <brion@pobox.com>
Tue, 10 Nov 2009 16:23:24 +0000 (08:23 -0800)
commit9d0687b0559095f270a55af3467c53ad29bfd4c7
treea64ad03aa33ee8c6973026dbc880c6006a84ef6e
parent486dbe6aef380a9057c5ac609cd1c6086a5e34fc
Adjusting indexes to make favorites query more efficient, based on feedback from ops.

fave_user_id_idx index changed from (user_id) to (user_id,modified), so the timestamp ordering can be done straight from the index while we're looking up the user's notices.
Added to 08to09.sql and 08to09_pg.sql; may need to be run manually by folks doing development.
(No harm if you don't update it, the favorites tab/rss feed will just stay inefficent.)
db/08to09.sql
db/08to09_pg.sql
db/statusnet.sql
db/statusnet_pg.sql