core: Drop the 'update_lastmsgid' statements
authorShane Synan <digitalcircuit36939@gmail.com>
Sun, 16 Apr 2017 04:28:44 +0000 (23:28 -0500)
committerManuel Nickschas <sputnick@quassel-irc.org>
Mon, 24 Apr 2017 19:53:20 +0000 (21:53 +0200)
commit6f10c8052924b7f66c2ffe590e15618414c08d69
tree08b402e1d465ed38ba2bd7bfa0b249aaf79dd1fb
parent1d1178f7d73ab19e62798f23c1d0cd5e0b4cdb59
core: Drop the 'update_lastmsgid' statements

Remove the 'update_lastmsgid.sql' queries from PostgreSQL and SQLite
and remove the 'setBufferLastMsgId()' functions from
PostgreSqlStorage and SqliteStorage.  These are no longer needed now
that database triggers handle updating the 'lastmsgid' for buffers.

This removes redundancy and might improve performance.

Resolves GH-290.
src/core/SQL/PostgreSQL/update_buffer_lastmsgid.sql [deleted file]
src/core/SQL/SQLite/update_buffer_lastmsgid.sql [deleted file]
src/core/postgresqlstorage.cpp
src/core/postgresqlstorage.h
src/core/sql.qrc
src/core/sqlitestorage.cpp
src/core/sqlitestorage.h