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

log cost time #3255

Closed
LinWanCen opened this issue Sep 27, 2024 · 4 comments
Closed

log cost time #3255

LinWanCen opened this issue Sep 27, 2024 · 4 comments
Labels

Comments

@LinWanCen
Copy link

LinWanCen commented Sep 27, 2024

like

==> Preparing: select...
==> Parameters: ...
<== Total: 1, cost time: 1130ms
@harawata
Copy link
Member

Hello @LinWanCen ,

This can be achieved by writing a custom plugin (a.k.a. interceptor).
Please see https://stackoverflow.com/a/76054558/1261766

@harawata
Copy link
Member

harawata commented Jan 5, 2025

I hope my answer was satisfactory.

@harawata harawata closed this as completed Jan 5, 2025
@LinWanCen
Copy link
Author

The system is purchased, and they did not write interceptors.

If the framework itself provides simple time, it would be beneficial for slow SQL analysis of each new system.

Of course, it would be even better if the amount of returned data is added.

@harawata
Copy link
Member

harawata commented Jan 7, 2025

@LinWanCen ,

At this point, there is no plan to provide such log.

This is not our doc, but see the following section for various ways to obtain slow query logging
https://github.com/brettwooldridge/HikariCP?tab=readme-ov-file#log-statement-text--slow-query-logging

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants