做批量产品更新时Magento API性能问题 [英] Magento API performance issues when doing bulk product updates

查看:101
本文介绍了做批量产品更新时Magento API性能问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了Magento API的一些性能问题. 基本上,我使用API​​来创建和更新产品.它与客户库存系统集成在一起. 前几款产品需要6秒钟左右的时间.
10分钟后,每种产品大约需要15秒. 直到每个产品花费大约10分钟的时间,这种情况才成倍恶化.

I am experiencing some performance issues with the Magento API. Basically I use the API to create and update products. It's integrated with the clients stock system. The first few products take 6 seconds or so.
After 10 mins, it takes around 15 seconds per product. It gets exponentially worse until it takes around 10 minutes per product.

有人知道为什么会这样吗?

Does anyone know why this might be happening?

我想尝试将每个API请求的开始和结束时间以及该请求的内容写入日志文件.希望这能为我提供更多可靠的信息,以及是否有任何模式.想知道是否有人可以将我指向放置Mage:log()命令的最佳位置.

I was wanting to try writing to a log file the start and end time of each API request and what that request is. Hoping this would give me some more solid information to go on and if there's any pattern. wondered if someone might be able to point me to the best place to place my Mage:log() command(s).

我正在使用Magento 1.6.0

I'm using Magento 1.6.0

推荐答案

这可能有用.客户端批量上传产品时可能会有很多因素,最好检查一下它们如何使用API​​ Web服务.

This might be of use. There can be a lot of factors in a client bulk uploading products, and it's best to sense-check how they're using the API web services.

我写这个是为了窥探实际发生的事情.到目前为止,在识别SOAP调用中的客户端错误方面非常有用.

I wrote this to snoop what's actually going on. It's been very useful so far in identifying client-side bugs in their SOAP calls.

http://techcolin.net/2011/11/a-php-proxy-script-for-logging-magento-api-soap-calls/

希望这会给您一些见识.

Hope this gives you some insight.

这篇关于做批量产品更新时Magento API性能问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆