-
Notifications
You must be signed in to change notification settings - Fork 179
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
Looking into source of logging overhead #85
Comments
A part might be from sqlparser? |
@Dandandan I am not seeing info logging from sqlparser, looks like it's only using |
After taking a closer look, turns out the benchmark command used in the sample blog post is not using the rest api, not the sql api, so it by passes the sql planner entirely. The rest api arguments are mapped to dataframes directly. I tried removing actix-web's logging middleware and was able to confirm that this is the main source of bottleneck, which is very surprising :D I am going to prioritize #76 instead instead of digging into the middleware code. |
Ah yes - good find. Sounds like a good idea 👍 |
A few blogs ago I was given a tip to allocate I'm not sure how much work it would be to patch Actix versus replace it entirely but I thought I'd throw this out there. |
Thanks @marklit for the tip. I will verify the logging overhead once we moved to a new web framework and optimize it if it still turns out to be an issue. |
I wrote a custom logger implementation at roapi/roapi-http/src/layers.rs Line 16 in 246bc6d
|
https://tech.marksblogg.com/roapi-rust-data-api.html mentioned that changing logging level from info to error resulted in 50% speed boost, this is certainly not expected :(
The text was updated successfully, but these errors were encountered: