-
Notifications
You must be signed in to change notification settings - Fork 69
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
Can this server support chunked select (aka cursor)? #20
Comments
There may be a pull request that addresses that feature. |
Thank you for your response. After reviewing the code, I noticed that cursor queries are exclusively handled with fetchall() instead of fetch(). Would it be possible to add support for fetch() in this server? |
We're actively working on adding pagination support to mysql_mcp_server. This enhancement will allow much more efficient handling of large result sets. The implementation involves several key components: Adding a cursor management system to maintain state between queries Rather than fetching all results at once with fetchall(), we'll use fetchmany() to retrieve data in configurable batches. This will significantly reduce memory usage for large datasets. Cursor state is properly maintained across multiple requests I'll keep you updated on our progress. We're aiming to have this feature tested and ready for deployment soon! |
I need to deal with an extensive database, but the memory is insufficient. So I wonder if the server could support pagination. Looking forward to your response.
The text was updated successfully, but these errors were encountered: