(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).
Reviewed: https:/ /reviews. mahara. org/3610 gitorious. org/mahara/ mahara/ commit/ 4bd9d4930153eef 45cbebcc84ea07d eee62a7345
Committed: http://
Submitter: Robert Lyon (<email address hidden>)
Branch: master
commit 4bd9d4930153eef 45cbebcc84ea07d eee62a7345
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 :commit to db_format_timestamp and the output of
by ArtefactType:
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: I6f5575f9d3649f f53514f9927744a 01966d103dd
Signed-off-by: Nigel Cunningham <email address hidden>