A MySQL slowlog parser based on winnow #786
soulstompp
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have spent far too many work days grepping and reading through MySQL's slow logs. I have just released v 0.3.0 of mysql-slowlog-parser which is a log parser using winnow to produce a full representation of the data buried in these logs, including a full AST of the SQL query that was executed, easily extractable.
In most cases, I am not looking at these logs like a DBA and so many of the great tools out there, like Percona Grafana Dashboard, don't tend to fit what I need most of the time, since my use case is pretty different from the DBAs it was intended for.
My workflow is generally closer to this:
With this parser, I am able to jump right to step 5 and can concentrate on the remaining steps. This is because the parser helps with the following:
Removing these tedious steps has gone a long way toward quickly finding how to optimize how an application interacts with an RDBMS. I have managed up to 6x performance improvements with this approach without any major architectural changes. I hope with this parser (and some upcoming tools I have planned using this parser) can help others to find similar wins with dramatically less effort.
I plan on future projects that will help to automate all of these steps further, but all of it required being able to fully access the data in these logs. MySQLs slowlog format is very loosely structured and more intended for human eyes, so I was happy to have winnow at hand to put it all together.
Beta Was this translation helpful? Give feedback.
All reactions