Bug 504707 - Moving files to trash becomes slower as contents of trash grow
Summary: Moving files to trash becomes slower as contents of trash grow
Status: RESOLVED DUPLICATE of bug 461847
Alias: None
Product: dolphin
Classification: Applications
Component: general (other bugs)
Version First Reported In: 25.04.1
Platform: Manjaro Linux
: NOR major
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-23 17:34 UTC by php4fan
Modified: 2025-05-27 17:22 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description php4fan 2025-05-23 17:34:56 UTC
SUMMARY

I have had this issue forever with KDE on all KDE installations, first on OpenSUSE and  then on Manjaro: that moving files to Trash becomes slower and slower over time to the point that it becomes ridiculous.

I've finally found out that the reason is that (1) the setting for deleting files older than N days from the trash is not enabled by default (I think a reasonable default would be 30 days and enabled), and crucially (2) that the time it takes to move a file to trash grows as the amount of files in the trash grows. That is not acceptable, especially as the trash grows indefinitely by default.

When I found out that stuff didn't get deleted automatically from the Trash, I had several GB of data in it (although I suspect the relevant thing is the number of items, not the total size), and moving a single file to trash from the desktop would take almost a minute.



STEPS TO REPRODUCE
1. move files to the trash daily

OBSERVED RESULT
moving few (or even one) files to the trash becomes slower and slower every day, as the trash grows

EXPECTED RESULT
The time it takes to move a file to trash shouldn't significantly grow with the size of the trash.


SOFTWARE/OS VERSIONS
Operating System: Manjaro Linux 
KDE Plasma Version: 6.3.5
KDE Frameworks Version: 6.14.0
Qt Version: 6.9.0
Kernel Version: 6.6.90-1-MANJARO (64-bit)
Graphics Platform: Wayland
Processors: 12 × 12th Gen Intel® Core™ i7-1255U
Memory: 15.3 GiB of RAM
Graphics Processor: Intel® Iris® Xe Graphics
Manufacturer: ASUSTeK COMPUTER INC.
Product Name: Vivobook_ASUSLaptop X1502ZA_F1502ZA
System Version: 1.0
Comment 1 John Kizer 2025-05-27 17:22:39 UTC
Hi - merging this in with an existing report for this issue, with some existing development work referenced. Thanks!

*** This bug has been marked as a duplicate of bug 461847 ***