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

Further enhancements to speed up the store procedure #3796

Merged
merged 3 commits into from
Mar 24, 2023

Commits on Mar 22, 2023

  1. [server] Update review status of reports in batch

    Previously for every new inserted report, a review status query was done
    to determine its target value to be set. This was factored out, and
    instead is done in a single batch, at the end of inserting reports.
    
    [server] Cache severity levels
    
    Remove profiling code, and fix linter errors and tests
    
    Refactor report storing, runtime performace gains
    
    To be able to move the session.flush() from after each report to after
    the completion of the processing of all report files, a new helper
    method was needed to be introduced: __add_report_context().
    
    This will handle the addition of notes, macro expansions in a separate
    step, after the reports have been flushed to the db, and already gotten
    their primary keys assigned.
    
    Also added a helper class to handle review statuses stored in source
    code.
    vodorok committed Mar 22, 2023
    Configuration menu
    Copy the full SHA
    df4ad0f View commit details
    Browse the repository at this point in the history

Commits on Mar 23, 2023

  1. [feat] Make report annotations compatible with store speedup

    By moving the the additon of annotations from the add_report method to
    the add_report_context method (and removing the flush from the handler
    function), the same session flushing strategy was restored.
    vodorok committed Mar 23, 2023
    Configuration menu
    Copy the full SHA
    4055ffd View commit details
    Browse the repository at this point in the history
  2. Fix docstring

    vodorok committed Mar 23, 2023
    Configuration menu
    Copy the full SHA
    25dcd5b View commit details
    Browse the repository at this point in the history