]> source.dussan.org Git - redmine.git/commit
Sort messages by ids to avoid the left join.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 20 Jun 2016 19:03:53 +0000 (19:03 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 20 Jun 2016 19:03:53 +0000 (19:03 +0000)
commit1b10649783e2884fde72501bf86a78b68f24ea57
treeaebed9b6ecd0f7e7fa44799ac680eac11a2352fd
parent3f20ab690d08af503a06a55e93d605bd6a12a84c
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
app/controllers/boards_controller.rb