Understanding --limit in percona toolkit pt-query-digest

I read all the docs and didn’t totally understand how --limit works.
Why would I want to use the percentage option and not analyze all?
Also, if I group by user, Will it give me a different result? because the limit runs before the filter?

OK I understand it now. I thought it filters the queries before aggregation but it’s after.

1 Like