Cache strict sysident mappings
authorMichael Marley <michael@michaelmarley.com>
Wed, 4 Apr 2018 12:25:14 +0000 (08:25 -0400)
committerManuel Nickschas <sputnick@quassel-irc.org>
Mon, 7 May 2018 20:38:41 +0000 (22:38 +0200)
commit8697a21faab21ae23646f559cba9a85bd95b2ad7
tree266e4953cf171d50fc7e3f4f3ba19ae4ace3918c
parentf932e5c8a0ec3ff689686a71c32ee61a428c4340
Cache strict sysident mappings

To avoid unnecessary database hits, we store a mapping of all permitted
strict sysidents in memory. This mapping is reloaded on SIGHUP.

A miss will make a call to the database.

Co-authored-by: Sai Nane <esainane+github@gmail.com>
Co-authored-by: Michael Marley <michael@michaelmarley.com>
12 files changed:
src/core/SQL/PostgreSQL/select_all_authusernames.sql [new file with mode: 0644]
src/core/SQL/SQLite/select_all_authusernames.sql [new file with mode: 0644]
src/core/core.cpp
src/core/core.h
src/core/coreapplication.cpp
src/core/coresession.cpp
src/core/postgresqlstorage.cpp
src/core/postgresqlstorage.h
src/core/sql.qrc
src/core/sqlitestorage.cpp
src/core/sqlitestorage.h
src/core/storage.h