I am inspecting our DB globals in order to reduce sizes of the worst offenders if possible. When I come to a large global, I am interested which of its nodes are the largest. Hence code below with unexpected different results. Any explanations why are results different?
testpartialGlobalsSize
d partialGlobalsSize(dirName,globalName)
partialGlobalsSize(dir,global)
S sub="",path="C:\Cachesys\mgr\"_dir_"\",searchGlobal="^"_global
S x=##Class(%GlobalEdit).GetGlobalSize(path, global,.Alloc,.Size)
W global,",",Size,! ; Got 725 here
S x=##Class(%GlobalEdit).GetGlobalSizeBySubscript(path,global,global,.