1. 19 Aug, 2013 1 commit
  2. 14 Aug, 2013 1 commit
    • Daniel Vrátil's avatar
      Send dummy queries to MySQL to keep the connection alive · a2ada719
      Daniel Vrátil authored
      MySQL server will drop connection when there's no query for longer
      period of time. The timeout does not seem to be configurable and
      QSqlDatabase is unable to detect that the connection has been dropped
      and isValid() and isOpen() will still return true.
      
      To work around this problem, we send a dummy SQL query to MySQL
      every hour. It has been confirmed by long-term testing that
      this is enough.
      a2ada719
  3. 31 Jul, 2013 1 commit
  4. 25 Jul, 2013 1 commit
  5. 24 Jul, 2013 1 commit
  6. 22 Jul, 2013 2 commits
  7. 16 Jul, 2013 1 commit
    • Daniel Vrátil's avatar
      Improve DataStore::appendItemsFlags() · 9a873b99
      Daniel Vrátil authored
      Fixes a bug that failed the entire batch if one of the items already had
      the flag the batch tried to append.
      
      Secondly it optimizes the operation to perform only 2 big queries per each
      flag being appended rather than doing 2 queries per each item. Notifications
      with empty addedFlags and removedFlags fields are not emitted anymore as well.
      
      REVIEW: 110766
      9a873b99
  8. 12 Jul, 2013 1 commit
  9. 09 Jul, 2013 1 commit
  10. 28 Jun, 2013 1 commit
  11. 27 Jun, 2013 2 commits
  12. 24 Jun, 2013 1 commit
    • Sergio Martins's avatar
      Save as much as 60MB of heap space. · 8df7175f
      Sergio Martins authored
      This patch clears the query cache if it's unused for more than 30 seconds.
      
      Tested with two clients connected (korg and korgac).
      Massif pointed out 60MB of heap allocated to the QueryCache,
      massive blobs in libmysql.
      
      The QueryCache was created to speed up mass operations,
      like deleting all items from a collection, after that,
      there's no use in keeping it around.
      
      Even if another mass operation arrives, it's just a few milliseconds
      to prepare the first query so it can be used for all following queries
      of this new mass-operation.
      
      My akonadiserver is now running at 17MB when using jemalloc.
      
      ( with glibc malloc it's a bit more random, due to glibc's
      complicated policies to return memory to OS, sometimes it goes
      down to 17MB too, other times stays at 80MB ).
      
      REVIEW: 111203
      8df7175f
  13. 18 Jun, 2013 3 commits
  14. 10 Jun, 2013 2 commits
  15. 08 Jun, 2013 1 commit
    • Daniel Vrátil's avatar
      Don't compress ModifyFlags into Modify operations · d7c74a90
      Daniel Vrátil authored
      In a situation that ModifyFlags was emitted right after
      Modify operation (for the same items), the ModifyFlags
      operation was merged into the Modify operation, and thus
      effectively lost, because addedFlags and removedFlags
      fields are ignored in Modify operation.
      
      Fixes a bug that caused emails that were marked as read (usually
      during sync) to revert to unread state after next sync.
      d7c74a90
  16. 07 Jun, 2013 1 commit
    • Christophe Giboudeaux's avatar
      Rename table_cache to table_open_cache · 13876b14
      Christophe Giboudeaux authored
      table_cache is deprecated since MySQL 5.1.3 (released in Nov. 2005) and was completely removed in MySQL >= 5.6
      
      No other change is needed. On the next akonadiserver startup, the existing config file will be replaced with the new one.
      
      BUG: 319016
      FIXED-IN: 1.10
      13876b14
  17. 28 May, 2013 2 commits
  18. 23 May, 2013 1 commit
  19. 20 May, 2013 1 commit
  20. 18 May, 2013 6 commits
  21. 10 May, 2013 1 commit
  22. 05 May, 2013 5 commits
  23. 30 Apr, 2013 2 commits
  24. 22 Apr, 2013 1 commit