Skip to content

Automated Test: db-cleanup-optimized #324

Closed
wants to merge 1 commit into from

Commits on Jan 12, 2024

  1. Annotations: Split cleanup into separate queries and deletes to avoid…

    … deadlocks on MySQL (#80329)
    
    * Split subquery when cleaning annotations
    
    * update comment
    
    * Raise batch size, now that we pay attention to it
    
    * Iterate in batches
    
    * Separate cancellable batch implementation to allow for multi-statement callbacks, add overload for single-statement use
    
    * Use split-out utility in outer batching loop so it respects context cancellation
    
    * guard against empty queries
    
    * Use SQL parameters
    
    * Use same approach for tags
    
    * drop unused function
    
    * Work around parameter limit on sqlite for large batches
    
    * Bulk insert test data in DB
    
    * Refactor test to customise test data creation
    
    * Add test for catching SQLITE_MAX_VARIABLE_NUMBER limit
    
    * Turn annotation cleanup test to integration tests
    
    * lint
    
    ---------
    
    Co-authored-by: Sofia Papagiannaki <1632407+papagian@users.noreply.github.com>
    2 people authored and GitHub committed Jan 12, 2024
    Configuration menu
    Copy the full SHA
    81c45bf View commit details
    Browse the repository at this point in the history