New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Coroutine MySQL #2538
Merged
Coroutine MySQL #2538
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
twose
added
do not merge
Should not be merged until something is addressed
in progress
Maintainers are working on this
labels
Apr 28, 2019
完善了跟踪日志, 示例如下:
|
由于更改较多, 已将提交合并为一个并在master删除了主要文件(使得对比差异是全部新增的) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
do not merge
Should not be merged until something is addressed
in progress
Maintainers are working on this
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
MySQL客户端底层异步回调模式转协程模式
新增特性
['ssl' => true]
即可)变化
fetch_mode
后, 必须循环fetch或使用fetchAll取出所有数据后, 才能进行新的请求待考虑
fetch_mode
下和使用存储过程时, 可以跳过未读取的数据 (难度较大, 意义不大)性能变化
和异步版本基本一致, 压测有不超过5%的性能损耗, 但带来的各种好处和底层维护成本的降低不言而喻