nextcloud/tests/lib/Files
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
..
AppData Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to \PHPUnit\Framework\MockObject\MockObject 2020-08-12 13:55:19 +02:00
Cache test: put parent items into cache in tests 2024-09-19 17:45:28 +02:00
Config fix(users): Don't crash if disabled user is missing in the database 2024-09-23 18:08:17 +02:00
Mount test: add test for cache mount provider 2023-09-20 15:42:23 +02:00
Node fix(tests): Fix Folder tests 2024-09-19 17:51:51 +02:00
ObjectStore perf(ObjectStoreStorage): Improve (slow) move on same object bucket 2024-10-30 08:28:52 +00:00
Search test: Additional tests for issue #35776 2024-03-04 14:25:52 +01:00
SimpleFS Fix tests 2022-10-14 16:18:40 +02:00
Storage perf(ObjectStoreStorage): Improve (slow) move on same object bucket 2024-10-30 08:28:52 +00:00
Stream fix(users): Don't crash if disabled user is missing in the database 2024-09-23 18:08:17 +02:00
Type refactor(mimeloader): modernize MimeTypeLoader 2024-03-14 17:24:36 +01:00
Utils Migrate from ILogger to LoggerInterface where needed in the tests 2022-03-24 16:21:26 +01:00
EtagTest.php chore: apply changes from Nextcloud coding standards 1.1.1 2023-11-23 10:36:13 +01:00
FileInfoTest.php optimize isShared and isMounted 2023-11-08 17:34:58 +01:00
FilesystemTest.php chore: apply changes from Nextcloud coding standards 1.1.1 2023-11-23 10:36:13 +01:00
PathVerificationTest.php composer run cs:fix 2023-01-20 11:45:08 +01:00
ViewTest.php fix(files): Check if the target path is a descendant of the shared folder path 2024-09-06 01:59:29 +00:00