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

Vikas Jain vikas at vtiger.com
Thu Dec 4 06:40:39 GMT 2014


Alan,

Webservices caches a lot of meta information and reuses it, we have been
putting some effort in optimizing web services and are using webservice
server side apis in other part of the product like querygenerator,
workflows etc. So a lot of concentrated effort has gone in to improve them.

On 3 December 2014 at 14:02, Alan Lord <alanslists at gmail.com> wrote:

> 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?
>>
>
>
>
> _______________________________________________
> http://www.vtiger.com/
>



-- 
Regards
Vikas
Vtiger Team
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20141204/9ddfd0a4/attachment.html>


More information about the vtigercrm-developers mailing list