nextcloud/tests/lib/Files/ObjectStore
Christoph Fiehe 68b9972889 perf(ObjectStoreStorage): Improve (slow) move on same object bucket
This commit fixes the issue #47856. When you upload a file into a group folder and when you use a single S3 bucket as primary storage, the final move operation hangs for a long time. In the background, Nextcloud initiates a copy-delete sequence from the bucket into the bucket, with causes a lot unnecessary overhead. Nextcloud thinks that the file must be imported to another storage and does not recognize that everything is done on the same object bucket. In that case, the import step can be completely skipped, which saves time, network bandwidth and reduces the load on the object storage.

The behavior improves a lot with https://github.com/nextcloud/server/pull/46013. However, there are still some put messages that are being sent to the object storage when you use an object storage as primary storage and upload files into a group folder.

Co-authored-by: Kate <26026535+provokateurin@users.noreply.github.com>
Signed-off-by: Christoph Fiehe <c.fiehe@eurodata.de>
2024-10-30 08:28:52 +00:00
..
AzureTest.php fix using FSEEK_END with SeekableHttpStream to get file size 2022-09-15 17:23:16 +02:00
FailDeleteObjectStore.php fix: Apply new coding standard to all files 2024-04-04 11:45:22 +02:00
FailWriteObjectStore.php fix: Apply new coding standard to all files 2024-04-04 11:45:22 +02:00
LocalTest.php Format control structures, classes, methods and function 2020-04-10 14:19:56 +02:00
MapperTest.php composer run cs:fix 2023-01-20 11:45:08 +01:00
ObjectStoreScannerTest.php repair -1 folder sizes for object store background scan 2023-05-10 19:33:26 +02:00
ObjectStoreStorageOverwrite.php refactor(objectstorage): cleanup types 2024-02-02 14:59:21 +01:00
ObjectStoreStoragesDifferentBucketTest.php perf(ObjectStoreStorage): Improve (slow) move on same object bucket 2024-10-30 08:28:52 +00:00
ObjectStoreStoragesSameBucketTest.php perf(ObjectStoreStorage): Improve (slow) move on same object bucket 2024-10-30 08:28:52 +00:00
ObjectStoreStorageTest.php test: fix incorrect ltrim usage in test 2024-09-19 17:44:49 +02:00
ObjectStoreTest.php composer run cs:fix 2023-01-20 11:45:08 +01:00
S3Test.php fix: Apply new coding standard to all files 2024-04-04 11:45:22 +02:00
SwiftTest.php chore(tests): Migrate object storage unit tests from drone to GitHub Actions 2024-01-26 14:54:23 +01:00