Skip to main content
Question

PDF Archive cleanup

  • January 30, 2025
  • 6 replies
  • 167 views

Forum|alt.badge.img+6

 

Hello,

We are concerned about the PDF_ARCHIVE_TAB blobs not being cleaned up by the daily “Heavy Cleanup” Database task. Despite the expiry date passing for the PDFs, the blobs remain in the database.

Given that storage costs are a significant factor, how can we effectively manage the continuously growing database due to these blobs?

By using following query, we discovered the yearly increase of 3TB

SELECT EXTRACT(YEAR FROM created) AS year,
SUM(DBMS_LOB.GETLENGTH(PDF)) / 1048576 AS total_size_mb_PDF_ARCHIVE
FROM PDF_ARCHIVE
GROUP BY EXTRACT(YEAR FROM created)
ORDER BY year;

Anyone experience with the appropriate settings in IFS Cloud ?

Besr Regards

6 replies

Forum|alt.badge.img+16
  • Superhero (Partner)
  • 451 replies
  • January 30, 2025

Hi ​@MCIPSTEV 

 

I assume there are no error messages in Heavy Cleanup job. Do You have any customized reports? How many records do You have in Print Manager window?

Regarding IFS Cloud I only noticed problems with xml_report_archive_tab table.


Forum|alt.badge.img+6
  • Author
  • Sidekick (Customer)
  • 47 replies
  • January 30, 2025

There are no error messages, and I cannot understand the process of cleanup.

As you can see the expire date is last year, but the reports are still present in the database and the blob
 

Is there any week to remove the blobs older than a given date ?

 

 


Forum|alt.badge.img+16
  • Superhero (Partner)
  • 451 replies
  • January 30, 2025

Expire date is set based on Report Life time. Each report has its own value. There can be problem with printouts which are stayed in other state than Complete(Print Manager page) or there is an also hidden flag but I do not know on which table. There are few tables related to this.

 

Check also this query. How many rows there are?

        SELECT count(1)
         FROM   archive_tab
         WHERE result_key NOT IN (SELECT result_key FROM  archive_distribution_tab);


dsj
Ultimate Hero (Partner)
Forum|alt.badge.img+22
  • Ultimate Hero (Partner)
  • 880 replies
  • January 30, 2025

Hi ​@MCIPSTEV 

Please check the background job for Heavy cleanup task and see if you find any warnings related to Archive_API.Cleanup__

 

Regards,

Damith


Forum|alt.badge.img+6
  • Author
  • Sidekick (Customer)
  • 47 replies
  • January 31, 2025

 

The output of the following query : 0

SELECT count(1)
         FROM   archive_tab
         WHERE result_key NOT IN (SELECT result_key FROM  archive_distribution_tab);

 

What is the normal process when the Report Life time has passed, and where is it defined ?


Forum|alt.badge.img+16
  • Superhero (Partner)
  • 451 replies
  • January 31, 2025

How many rows do You have in: archive_tab, archive_distribution_tab, print_job_contents_tab tables?


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings