<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>318363</bug_id>
          
          <creation_ts>2013-04-14 22:01:58 +0000</creation_ts>
          <short_desc>Bad performance of file renames (thumbnail recreation?)</short_desc>
          <delta_ts>2022-01-31 21:57:11 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>digikam</product>
          <component>AdvancedRename-file</component>
          <version>3.1.0</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Frank Steinmetzger">dev+kde</reporter>
          <assigned_to name="Digikam Developers">digikam-bugs-null</assigned_to>
          <cc>caulier.gilles</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin>7.2.0</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1360803</commentid>
    <comment_count>0</comment_count>
    <who name="Frank Steinmetzger">dev+kde</who>
    <bug_when>2013-04-14 22:01:58 +0000</bug_when>
    <thetext>Dear devs

I was just renaming a few dozen files in an album using the rename function. All I did was changing the extension to lower case, i.e. [name].[ext]{lower}. The process ran very slowly with a lot of HDD load. Apparently, the thumbnail is recreated for every image plus possibly some other database stuff (I saw the thumbnail DB grow while renaming was in progress).
From my point of view, should a simple changing of the filename reference in the database not be enough instead of creating a whole new image entry?

Thanks for your consideration.

Reproducible: Always

Steps to Reproduce:
Rename a bunch of files.
Actual Results:  
It takes quite some time and causes a lot of disk load.

Expected Results:  
It should be quite fast, because basically only one string should be changed in the database.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1397326</commentid>
    <comment_count>1</comment_count>
    <who name="Frank Steinmetzger">dev+kde</who>
    <bug_when>2013-09-14 20:42:31 +0000</bug_when>
    <thetext>This seems to be related to #305359. I&apos;m using SQLite by the way.

*** This bug has been marked as a duplicate of bug 305359 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1956951</commentid>
    <comment_count>2</comment_count>
    <who name="">caulier.gilles</who>
    <bug_when>2020-09-12 10:52:03 +0000</bug_when>
    <thetext>Fixed with #305359</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>