Skip to content
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

Incorrect frame size #200

Closed
shcw opened this issue Sep 9, 2022 · 6 comments
Closed

Incorrect frame size #200

shcw opened this issue Sep 9, 2022 · 6 comments

Comments

@shcw
Copy link

shcw commented Sep 9, 2022

an error occurs when I use the same connection and request data using different cursors at the same time

What should I do in this situation?

@beltran
Copy link
Owner

beltran commented Sep 10, 2022

What error are you getting? I'm not surprised this is not working. There should be one cursor per connection. Why not just have this?

@shcw
Copy link
Author

shcw commented Sep 14, 2022

你遇到了什么错误?我并不惊讶这不起作用。每个连接应该有一个游标。为什么不只拥有这个?

I wrote a timed task and I want multiple processes to synchronize data at the same time, but it is the same connection. Do I need to re-establish the connection?

@beltran
Copy link
Owner

beltran commented Sep 14, 2022

Yes, you need one cursor per connection. I've actually never tried to use several cursors on the same connection. It's possible it works, or that it doesn't work but there's an easy fix. But the library was built with the assumption there would be one cursor per connection.

@beltran beltran closed this as completed Sep 14, 2022
@shcw
Copy link
Author

shcw commented Sep 19, 2022

是的,每个连接需要一个光标。我实际上从未尝试在同一连接上使用多个游标。它可能有效,或者它不起作用,但有一个简单的解决方法。但是该库是在假设每个连接有一个游标的情况下构建的。

thx, is there a recommended way to create a connection pool ?

@beltran
Copy link
Owner

beltran commented Sep 19, 2022

is there a recommended way to create a connection pool ?

Unfortunately I'm not aware of any best practices, but if you end up doing this please share the knowledge you acquire 🙂

@shcw
Copy link
Author

shcw commented Sep 20, 2022

is there a recommended way to create a connection pool ?

Unfortunately I'm not aware of any best practices, but if you end up doing this please share the knowledge you acquire 🙂

thx ~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants