-
Notifications
You must be signed in to change notification settings - Fork 21
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
Bad CSAF ingestion performance #456
Comments
I tried to go back a bit in the git history to see if that's a recent change. Doesn't look like that's the case. I started to work with the test data file |
The majority of time (~390ms) goes into |
I changed the title as I cannot provide any numbers. I just have the feeling it got much slower since some time ago. |
@ctron is this still an issue ? |
Hm, good question. Could it be better. Probably, but we tried to optimize things already. Still, importing that initial dataset still takes ~12 hours. |
Generating flamegraph with at lest has some relation with previous comments Adding a zipped svg because when we click the preview svg in github comment, for some reason we can't navigate on flamegraph.. better to download unzip and click to open in the browser |
@ctron can we change the title , suggestion:
I was not able to "tokio::spawn_blocking" this due some weirdo lifetime things I'm not good yet. But I noticed that it also helps a bit with tokio trying to poll causing more blocking situation |
Let's close this for now. I'd expect the database to be the bottleneck (or how we use the DB). But let's focus on more specific issues. |
might be related/superseded by #999 |
good I'll try to find a way to cover the lines that starts with the upload part.. |
is the parallel behavior #1009 |
I noticed a massive drop in performance when running the CSAF import process. I don't have numbers yet, but I'll investigate.
In the SQL logs I noticed at of a "select then insert" patters again.
The text was updated successfully, but these errors were encountered: