nemomobile/nemo-qml-plugin-calendar — pull request #31 by pgerdt (2014-05-07 06:50:48+00:00)
Title: Do DB operations in a thread, load only requested events

Refactor plugin to use a thread where to run costly database operations that currently block the GUI thread. In addition, load only calendar data explicitly requested by API users to keep the DB queries as fast as possible.

Reading events with mKCal seems to take ~100 ms at minimum with a a small number of calendar events. With a couple of thousand events to be loaded the time grows to > 10 seconds. The DB thread keeps the GUI responsive during these heavy operations and limits the data needed to be loaded to a minimum.

This pull request has been reviewed in https://github.com/nemomobile/nemo-qml-plugin-calendar/pull/30, the code in this PR is identical, the PR just changes to destiniation from branch next to master.