Rewrite models
The SQL performance is very poor and I (personally) don't always understand what it exactly does and when. We could do something like Ruqola does with JSON files.
[edit] The main problem with the SQL model is currently that it always needs to run in the same thread as the UI and so is blocking the UI when something is inserted. That ends in a totally stuck UI when loading many messages.
https://phabricator.kde.org/source/ruqola/browse/master/src/ruqolacore/model/messagemodel.cpp
Edited by Bhushan Shah