(Bug1353802) Don't call delete_records for new artefacts.
In ArtefactType::commit, don't bother calling delete_records
if we know the artefact that is being committed is new. In
testing the addition 2000 users from a CSV file, this patch
shaved 4 seconds off the completion time.
Reviewed: https:/ /reviews. mahara. org/3612 gitorious. org/mahara/ mahara/ commit/ a7a32f257839692 d4e7e757efe196f 02d6853b26
Committed: http://
Submitter: Robert Lyon (<email address hidden>)
Branch: master
commit a7a32f257839692 d4e7e757efe196f 02d6853b26
Author: Nigel Cunningham <email address hidden>
Date: Tue Jul 29 15:12:27 2014 +1000
(Bug1353802) Don't call delete_records for new artefacts.
In ArtefactType: :commit, don't bother calling delete_records
if we know the artefact that is being committed is new. In
testing the addition 2000 users from a CSV file, this patch
shaved 4 seconds off the completion time.
Change-Id: I5b22cb5fc936e6 7e9a37a0022a448 8fc30604d03
Signed-off-by: Nigel Cunningham <email address hidden>