Maven virtual registry: avoid copy operation during upload
🔥 Problem
Similar to Avoid the copy operation during Generic Package... (#429060 - closed).
The Maven virtual registry uses the workhorse accelerated uploads. In the past, there were performance hits in this approach due to the underlying logic doing a copy operation on object storage.
That copy operation can now be completely avoided with a few updates.
🚒 Solution
- Add a new column named
file_final_pathto thevirtual_registries_packages_maven_cached_responsestable withtexttype and1024char length. - Pass two new keyword arguments to
authorize_workhorse!method.use_final_store_path: truefinal_store_path_root_id: <registry id>
-
⚠ look if we need to keep around theobject_storage_keycolumn or not. There is a model callback associated to it.
Edited by David Fernandez