Feature request: mysqli_poll async support for prepared statements also
还没有人认领这个 Issue。
- 主要语言
- C
- 星标
- 40.4k
- 派生
- 8.1k
- 平均合并
- 2 天 13 小时
- 30 天内合并 PR
- 96
描述
Description
Recently PHP True Async RFC was rejected. It was supposed to have ONE worker and multiple coroutines. But that functionality would be useful only for external calls (like DB, HTTP etc.) that need time to respond.
While for HTTP calls there is curl_multi_init, for parallel DB queries there is no alternative when prepared statements are needed.
So we propose to finish mysqli_poll or implement similar one for running parallel prepared statements.
We already use mysqli_poll to eager load relations in Eloquent that don't have bindings when the number of relations is big (over 20).
https://stackoverflow.com/questions/36358865/mysqli-async-available-with-prepared-statements-in-php
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
该 issue 提到了 mysqli_poll 和 prepared statements,但没有指出源文件或测试;首先在 php-src 中追踪这些入口点,并确定现有的异步轮询如何处理未准备的查询。定义对 prepared statements 的支持行为,并通过回归覆盖验证并行完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- c, php
- 领域
- database
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100