issue 1179: Fixed insert perf problem introduced by bad commit in 0.9.7.13