1. 21 Aug, 2014 6 commits
  2. 20 Aug, 2014 5 commits
  3. 19 Aug, 2014 2 commits
  4. 17 Aug, 2014 6 commits
  5. 15 Aug, 2014 2 commits
  6. 13 Aug, 2014 1 commit
  7. 10 Aug, 2014 1 commit
  8. 08 Aug, 2014 2 commits
  9. 07 Aug, 2014 2 commits
    • Nigel Cunningham's avatar
      (Bug1353802) Remember and reuse last db_format_timestamp output if poss. · 4bd9d493
      Nigel Cunningham authored
      This patch adds support for remembering the last parameter used
      by ArtefactType::commit to db_format_timestamp and the output of
      the function, and reusing the output if the input is the same on
      the next call.
      
      In a test import of 2000 users, this patch reduced the number of
      invocations of db_format_timestamp from 80,000 (3.6s) to 14,800
      (.3s).
      
      Change-Id: I6f5575f9d3649ff53514f9927744a01966d103dd
      Signed-off-by: default avatarNigel Cunningham <nigelc@catalyst-au.net>
      4bd9d493
    • Nigel Cunningham's avatar
      (Bug1353802) Add query result caching to handle_event · 7441f64a
      Nigel Cunningham authored
      Improve the performance of handle_event by caching the results of
      database queries. In testing adding 2000 users from a CSV file with
      a typical number of fields (username, password, email, firstname,
      lastname, studentid, address, town, city, country, homenumber,
      mobilenumber), this change reduced the average import time over
      three runs (with a fresh install each time) as follows:
      
                             Before      After     Saving
      Total Wall Time        246s        114s       132s - 54%
      handle_event           132s         21s       111s - 84%
      
      (The change to handle_event seems to affect other functions'
      execution times, perhaps due to other database caches still
      being in memory that would otherwise be replaced).
      
      Change-Id: Ibf28650df710dd807f95fca30a2dfc29ed92f5cd
      Signed-off-by: default avatarNigel Cunningham <nigelc@catalyst-au.net>
      7441f64a
  10. 04 Aug, 2014 1 commit
  11. 31 Jul, 2014 2 commits
  12. 30 Jul, 2014 7 commits
  13. 28 Jul, 2014 2 commits
  14. 25 Jul, 2014 1 commit