Published on InterSystems Developer Community (https://community.intersystems.com)

Home > StreamLocation doesnt seem to affect where streams are stored

Question
Jenna Poindexter · Mar 30, 2020

StreamLocation doesnt seem to affect where streams are stored

Hi-

I have a class that specifies that streams should be stored in SSA.DocumentCacheS, however, they are getting stored in CacheStream instead.

How can I get streams to properly store in SSA.DocumentCacheS?

Here's the section from my storage definition that shows the StreamLocation

<DataLocation>^SSA.DocumentCacheD</DataLocation>
<DefaultData>DocumentCacheDefaultData</DefaultData>
<IdLocation>^SSA.DocumentCacheD</IdLocation>
<IndexLocation>^SSA.DocumentCacheI</IndexLocation>
<StreamLocation>^SSA.DocumentCacheS</StreamLocation>
<Type>%Storage.Persistent</Type>

But when I look at the globals created:

Global ^SSA.DocumentCacheD
^SSA.DocumentCacheD("997ey01BWB")=$lb("",$lb($lb($c(0,19,1,14,1)_"^CacheStream"_$c(3,4,2,2,1),,"^CacheStream")),$lb("Bronchitis.tiff"),$lb("8416350"))                                                                                                                   
Global ^SSA.DocumentCacheS  [Global does not exist]
Global ^

Any thoughts on where I went wrong?

Thanks

#Object Data Model #Caché

Source URL:https://community.intersystems.com/post/streamlocation-doesnt-seem-affect-where-streams-are-stored