(Bug 1364687) Don't look for an artefact record when we know we're making a new one.
Avoid the query for an existing artefact record when we know it doesn't
exist (because we're being called from create_user). This shaves
approximately 40% off the time for creating a user.
Reviewed: https:/ /reviews. mahara. org/3613 gitorious. org/mahara/ mahara/ commit/ f0fd10e2c0c0be0 8c8a8cc2459f2f3 88d4c548d9
Committed: http://
Submitter: Robert Lyon (<email address hidden>)
Branch: master
commit f0fd10e2c0c0be0 8c8a8cc2459f2f3 88d4c548d9
Author: Nigel Cunningham <email address hidden>
Date: Wed Aug 6 15:24:56 2014 +1000
(Bug 1364687) Don't look for an artefact record when we know we're making a new one.
Avoid the query for an existing artefact record when we know it doesn't
exist (because we're being called from create_user). This shaves
approximately 40% off the time for creating a user.
Change-Id: I81697dfd0916e4 a2933dfe5d1389b dc649e6e856
Signed-off-by: Nigel Cunningham <email address hidden>