User bio
Systems developer at InterSystems with a focus on connectivity and interoperability.
Member since Aug 15, 2016
Posts:
Replies:
Open Exchange applications:
Certifications & Credly badges:
Sarah has no Certifications & Credly badges yet.
Global Masters badges:
![Challenge Starter](https://community.intersystems.com/sites/default/files/badges/295959213-b83dd91a-663f-4f07-8e0e-e3287b7c2309.png)
![DC Author](https://community.intersystems.com/sites/default/files/badges/dc_author_0.png)
![DC Commenter](https://community.intersystems.com/sites/default/files/badges/dc_commenter_1.png)
![DC Problem Solver](https://community.intersystems.com/sites/default/files/badges/dc_problem_solver_1.png)
![Bronze Commenter](https://community.intersystems.com/sites/default/files/badges/295959100-c193c40f-0952-4935-bea7-4317f796fbb7_0.png)
![InterSystems Application of the Year 2023](https://community.intersystems.com/sites/default/files/badges/app_23.png)
Followers:
Following:
GetGlobalSizeBySubscript differs from GetGlobalSize insofar that GetGlobalSize focuses on the data blocks, while GetGlobalSizeBySubscript counts pointer blocks at each level as well and includes them in the total size count. Additionally, in your code, you specify global(sub) for both the start and end nodes when you likely want to use this:
S x=##Class(%GlobalEdit).GetGlobalSizeBySubscript(path,global_"("""_sub_""")","",.Size)
The latter measures that entire subnode, as per the examples in the Class Reference.
Robert also raises a good point about Used vs. Allocated. GetGlobalSize (and GSIZE detailed view) return the Used size alongside Allocated, and Used may be less than Allocated due to packing.