PostgreSQL: Improve performance and squish bug.
authorAlex Ingram <reimu@reimuhakurei.net>
Fri, 3 Mar 2017 20:05:30 +0000 (14:05 -0600)
committerAlex Ingram <reimu@reimuhakurei.net>
Fri, 3 Mar 2017 20:08:17 +0000 (14:08 -0600)
Improve performance of the unread messages backlog fetcher by using a normal JOIN instead of a LEFT JOIN.

Correct for bug in which buffer.lastseenmsgid was set to a value higher than buffer.lastmsgid. This is a client bug, but this prevents it from screwing up the database.


No differences found