summaryrefslogtreecommitdiffstats
path: root/db/migrate/009_add_hide_mail_pref.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-06-20 19:03:53 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-06-20 19:03:53 +0000
commit1b10649783e2884fde72501bf86a78b68f24ea57 (patch)
treeaebed9b6ecd0f7e7fa44799ac680eac11a2352fd /db/migrate/009_add_hide_mail_pref.rb
parent3f20ab690d08af503a06a55e93d605bd6a12a84c (diff)
downloadredmine-1b10649783e2884fde72501bf86a78b68f24ea57.tar.gz
redmine-1b10649783e2884fde72501bf86a78b68f24ea57.zip
Sort messages by ids to avoid the left join.
The query was really slow with PostgreSQL and a few thousands messages, and last_message_id column was storing the highest id anyway. git-svn-id: http://svn.redmine.org/redmine/trunk@15582 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'db/migrate/009_add_hide_mail_pref.rb')
0 files changed, 0 insertions, 0 deletions