[ 
https://issues.apache.org/jira/browse/CASSANDRA-13000?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17922052#comment-17922052
 ] 

Stefan Miklosovic edited comment on CASSANDRA-13000 at 1/29/25 10:34 AM:
-------------------------------------------------------------------------

[~bschoeni] something for you to take a look at? This would be very nice to 
have. We might create a PR and all the discussion would be done there.


was (Author: smiklosovic):
[~bschoeni] something for you to take a look at? This would be very nice to 
have. 

> slow query log analysis tool
> ----------------------------
>
>                 Key: CASSANDRA-13000
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-13000
>             Project: Apache Cassandra
>          Issue Type: New Feature
>          Components: Legacy/Observability
>            Reporter: Jon Haddad
>            Assignee: Murukesh Mohanan
>            Priority: Normal
>             Fix For: 5.x
>
>         Attachments: 
> 0001-Adds-a-cqldumpslow-tool-which-analyses-the-debug-log.patch, 
> 0001-Adds-a-cqldumpslow-tool-which-analyses-the-debug-log.patch, 
> csqldumpslow.py
>
>
> As a follow up to CASSANDRA-12403, it would be very helpful to have a tool to 
> process the slow queries that are logged.  In the MySQL world, there's a tool 
> called mysqldumpslow, which processes a slow query log, abstracts the 
> parameters to prepared statements, and shows the queries which are causing 
> problems based on frequency.  The {{mysqldumpslow}} utillity shows an 
> aggregated count & time statistics spent on slow queries.  For instance:
> {code}shell> mysqldumpslow
> Reading mysql slow query log from 
> /usr/local/mysql/data/mysqld51-apple-slow.log
> Count: 1  Time=4.32s (4s)  Lock=0.00s (0s)  Rows=0.0 (0), root[root]@localhost
>  insert into t2 select * from t1
> Count: 3  Time=2.53s (7s)  Lock=0.00s (0s)  Rows=0.0 (0), root[root]@localhost
>  insert into t2 select * from t1 limit N
> Count: 3  Time=2.13s (6s)  Lock=0.00s (0s)  Rows=0.0 (0), root[root]@localhost
>  insert into t1 select * from t1{code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to