[Slow performance] - two seconds for each call

未关闭
#76 7 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
30/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
python
领域
api

调研方向

首先复现单个产品和 100 个产品的 wcapi 调用所报告的两秒耗时,然后检查 wrapper 的连接设置和请求路径。完成的标准是确定连接建立是否导致固定延迟,并记录或测试能够减少每次调用延迟的更改。

由索引模型根据 Issue 内容生成。

描述

Hi,
In my tests, each wcapi call takes about 2 seconds, regardless of the content of the call.
If I do a get of a single product or a get of 100 products, it always takes about 2 seconds.

Two seconds for an operation on 100 products can be an acceptable time, however it is far too long for an operation on only one product.

The fact that the long execution time does not depend on the type of call, makes me rule out a problem on my server, and makes me think that most of the time is used to "establish the connection" and not to "execute the query".

Can i do something to speed up the process?

Thanks

主要语言
Python
星标
216
派生
108
平均合并
6 小时 34 分钟
30 天内合并 PR
1

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

woocommerce/wc-api-python 的其他 Issue

查看 woocommerce/wc-api-python 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。