Hi,
I'm trying to find the faster way to get the data from a class, and I find it very slow compared to traditional globals. So, I hope some of you can bring some light to me :-)
I have thousands of registers in a class, and to access it quickly I'm going with $o at the index. From there, I get the values using $listget(). Something like that:
s FromDateH = (+$h-1)
for {
set id=$order(^TestI("StartDateIDX",FromDateH,id))
quit:id=""
set dat=$lg(^TestD(id)) //dat=$lb("a","b","c","d","e")
}
I find it quite slow, so I've tried the same code but changing th
