Comment 1 for bug 1353802

Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/3610
Committed: http://gitorious.org/mahara/mahara/commit/4bd9d4930153eef45cbebcc84ea07deee62a7345
Submitter: Robert Lyon (<email address hidden>)
Branch: master

commit 4bd9d4930153eef45cbebcc84ea07deee62a7345
Author: Nigel Cunningham <email address hidden>
Date: Tue Jul 29 14:04:56 2014 +1000

(Bug1353802) Remember and reuse last db_format_timestamp output if poss.

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: Nigel Cunningham <email address hidden>