-
Notifications
You must be signed in to change notification settings - Fork 1k
关于client多协程问题 #456
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
Comments
@siddontang |
一个 conn 只能用在一个 goroutine,不支持并发访问 |
can you translate your response @siddontang i also encounters invalid sequence 63 != 1 while doing some select |
He means that the client of db does not support concurrency. If one client is used by many goroutines, this problem will arise |
ha yes ok, i. got the same issue and moved from your client to to database/sql to fix my query calls, much faster btw. thanks |
下面是一个示例
如上,希望可以只用一个mysql链接,给多个协程进行处理,这时会出如下错误:
除了加锁调用,是否还能有其他解决方案呢?
The text was updated successfully, but these errors were encountered: