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

Reuse iterator from print_report_port_xml in print_report_xml_start #797

Merged
merged 6 commits into from
Oct 16, 2019

Conversation

mattmundell
Copy link
Contributor

@mattmundell mattmundell commented Oct 14, 2019

The exact same result iterator is used in both, so this saves us from
running the slow result SQL twice.

For my basic report of 5000 results this saved about 200ms of the 1344ms
total for SQL used by GET_REPORTS, or 15%.

Checklist:

@mattmundell mattmundell marked this pull request as ready for review October 15, 2019 11:22
@mattmundell mattmundell changed the title Reuse iterator from print_report_port_xml in print_report_xm_start Reuse iterator from print_report_port_xml in print_report_xml_start Oct 15, 2019
@mattmundell mattmundell merged commit 23eeeae into greenbone:master Oct 16, 2019
@mattmundell mattmundell deleted the reuse-iterator branch October 16, 2019 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants