Tsz-wo Sze created HDDS-15894:
---------------------------------

             Summary: ReconDBProvider.truncateTable(..) is inefficient
                 Key: HDDS-15894
                 URL: https://issues.apache.org/jira/browse/HDDS-15894
             Project: Apache Ozone
          Issue Type: Bug
          Components: Ozone Recon
            Reporter: Tsz-wo Sze
         Attachments: image-2026-07-17-11-49-56-671.png

The truncateTable(..) method in ReconDBProvider
- indeed is clearing the entire table but not truncating it.
- It uses an iterator to delete the entry one by one, which is very slow.

Better ways suggested by Google are either:
- Method 1: Drop and Recreate (Fastest)
- Method 2: Use deleteRange (For Default or Inline Clearing)

See below for more details.
 !image-2026-07-17-11-49-56-671.png! 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to