Add ops FF to reduce the export batch size
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
- In rails console enable
Feature.enable(:export_reduce_relation_batch_size)
- Visit any project
- Go to Settings -> General -> Advanced -> Export project
- Wait for the project to be exported
- Refresh the page and check if the download button is displayed and the project was successfully exported
Edited by Rodrigo Tomonari