[Vtigercrm-developers] Creating Contact records via code. Timing results...

Alan Lord alanslists at gmail.com
Wed Dec 3 08:32:11 GMT 2014


Any ideas why is the vtws_create is *so* much faster than focus->save()?

Al

On 26/11/14 12:01, Alan Lord wrote:

> So I thought I'd do some timings to see which method was faster by
> limiting to 1000 rows. I thought others would find my results interesting.

> I was very surprised by the results!
>
> Webservices Method:
>> Creating Contact 999...
>> Contact saved.
>>
>> real    2m22.151s
>> user    0m48.923s
>> sys     0m5.912s
>
> The focus->save() method:
>> Creating Contact 999...
>> Contact saved.
>>
>> real    18m11.130s
>> user    1m0.656s
>> sys     0m6.800s
>
> So the Webservices method was approximately 9x faster in real-time!
>
> I'd love to know the main reason why it is *so* much quicker?





More information about the vtigercrm-developers mailing list