[go: up one dir, main page]

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

[FIX] Session ls on big databases #76

Merged
merged 2 commits into from
Nov 16, 2018
Merged

Conversation

vdaviot
Copy link
Contributor
@vdaviot vdaviot commented Nov 9, 2018

Which issue this PR fixes

  • Commit 251ab85 fixes:
    • #71: session ls fails with "Error 1390: Prepared statement contains too many placeholders"
      • Also contains fixes for: #72 and #62 (1695d4f) as they are mandatory to test.

What this PR does / why we need it

If the mySQL database held too many records, the session ls command failed with an error message. The hard limit of records by query in mySQL is 65,535.
It now queries by batch of 60000 to solve the problem.

I also added an option to only list active session (--active, -a) to compensate for the increased time taken by the query on bigger databases.

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

Successfully merging this pull request may close these issues.

2 participants