1. Tracy Lamb
  2. PowerBuilder
  3. Sunday, 17 October 2021 17:29 PM UTC

Hi Friends,

I'm rebalancing a bunch of libraries and noticed that the library size isn't changing even though I deleted most objects.  I did a full rebuild after deleting objects, but the library size is the same.

I created a new library and moved the remaining objects to the new library, then the file size changed appropriately.  

Any ideas on why the original file size wouldn't change after deleting many objects?

~~~Tracy

 

Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Monday, 18 October 2021 00:13 AM UTC
  2. PowerBuilder
  3. # 1

How about when you run the "optimize" command on the PBL?

Comment
  1. Tracy Lamb
  2. Monday, 18 October 2021 00:51 AM UTC
I didn't realized there was an optimize option for libraries. I just optimized all of the other libraries, but it didn't help very much.
  1. Helpful
  1. Roland Smith
  2. Monday, 18 October 2021 13:11 PM UTC
Did you optimize the one that you think should be smaller?
  1. Helpful
  1. Tracy Lamb
  2. Tuesday, 19 October 2021 15:30 PM UTC
No, because I created a new library and moved the object I wanted to keep. Moving objects did reduce the file size.
  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Monday, 18 October 2021 01:05 AM UTC
  2. PowerBuilder
  3. # 2

Hi Tracy,;

  That's not surprising as the IDE does not physically delete the objects. Instead, it marks them for "logical" deletion. The same when you update an object. The previous code version is marked for logical deletion & a new code copy is saved. 

   It's only when a library "optimize" is done, are the logically deleted code copies are then physically deleted & library space is then fully reclaimed.

   After performing a library optimize like Armeen recommend though should you see a library space reduction. In all other object update scenarios, library space should always actually increase. This space management approach for PBLs was adopted after how Microsoft's DOS O/S managed hard drive space.

BTW: what build & version of PB are you using? Also what O/S and machine are you running the IDE on?

Regards .. Chris

Comment
  1. Tracy Lamb
  2. Tuesday, 19 October 2021 15:24 PM UTC
PB2019 R3 Build 2703

Windows 10 Home

Device name BenchTopWin10

Processor AMD A8-7410 APU with AMD Radeon R5 Graphics 2.20 GHz

Installed RAM 8.00 GB (6.94 GB usable)

System type 64-bit operating system, x64-based processor

Pen and touch Touch support with 10 touch points

  1. Helpful
  1. Tracy Lamb
  2. Tuesday, 19 October 2021 15:28 PM UTC
This project has been under development since 1996! I wonder if it's time to create new libraries and move all objects over? When I have to migrate code, does that clean out the libraries? (yes, development started back in the PowerSoft days!)
  1. Helpful
  1. Miguel Leeuwe
  2. Tuesday, 19 October 2021 15:40 PM UTC
Hi,

No, it's enough to right click on each pbl in the library painter and choose "Optimize", like others have suggested.

regards
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.