Skip to content

Add ops FF to reduce the export batch size

Rodrigo Tomonari requested to merge rodrigo/reduced-relation-batch-size into master

What does this MR do and why?

Introduce export_reduce_relation_batch_size feature flag to reduce the export batch size for selected projects or groups.

Enabling this feature flag may allow the successful export of projects or groups that previously failed due to statement timeout errors "PG::QueryCanceled: ERROR: canceling statement due to statement timeout".

Related to: #441426 (closed)

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

  1. In rails console enable
    Feature.enable(:export_reduce_relation_batch_size)
  2. Visit any project
  3. Go to Settings -> General -> Advanced -> Export project
  4. Wait for the project to be exported
  5. Refresh the page and check if the download button is displayed and the project was successfully exported
Edited by Rodrigo Tomonari

Merge request reports