go to post Eduard Lebedyuk · Apr 11, 2021 Interesting question! Here are my findings for store/intersystems/irishealth-community:2020.4.0.524.0 and a simple app in the USER namespace. Uncompressed (Mb) Compressed (Mb) IRIS 3 323 897 IRIS Squashed 3 293 893 App 8 436 1 953 App MSB 3 526 937 App Squashed 3 576 931 App MSB + Squashed 3 363 904 Notes: MSB means Multi Stage Build Squashed means that an image was built with a --squash option Uncompressed size is calculated via docker inspect -f "{{ .Size }}" $image Compressed size is calculated via (docker manifest inspect $image | ConvertFrom-Json).layers | Measure-Object -Property size -Sum More info on calculating image sizes is available here Conclusion: either MSB or Squashed work fine, but just MSB would be better for storage as it can have shared layers (squash always produces one unique layer). Squashed is easier to implement.
go to post Eduard Lebedyuk · Apr 9, 2021 The best place to do that is your REST broker. After you got your error from BP, just create your own error and pass that.
go to post Eduard Lebedyuk · Apr 6, 2021 Iterating through large pandas dataFrame objects is generally slow You're right. Here's a good write up on the topic.
go to post Eduard Lebedyuk · Apr 3, 2021 Thank you! Why do you map %ZLANGC00/%ZLANGF00 to %ALL? They are available everywhere by default.
go to post Eduard Lebedyuk · Apr 1, 2021 Separate REST logic form a business logic and call ObjectScript method directly? Check out this article on REST design (esp. terminal layer in the article terms).
go to post Eduard Lebedyuk · Mar 27, 2021 Use %INLIST it matches a value to the elements in a %List structured list.
go to post Eduard Lebedyuk · Mar 23, 2021 If that is indeed the case I recommend this series of articles.
go to post Eduard Lebedyuk · Mar 22, 2021 It's not a server who checks for expiry, but a client. So your flow works like this: 1. 15:00 calling application runs a GET request for patient?MRN=A2. 15:00 CSP Web application calls HIHLib.REST.Server class and forwards request on to namespace for handling (via business services,process and operations)3. 15:00:05 response is returned with EXPIRES 300 and VaryByParam set to *4. 15:10 a seperate internall process results in patient with MRN A - first name changed from pete to bob5. 15:12 calling application runs a GET request for patient?MRN=A6. 15:12 web browser (on a client side) sees that patient?MRN=A request is cached locally and still valid due to EXPIRES 300. Web browser is returning a cached value to a calling application without going to the server. And server would never get a second request (that's the point of the EXPIRING header after all). Expires controls how long the response is valid. It's for things like HTML pages which are static. If you think that a response can change every time a client requests it, you should not add an EXPIRING header.
go to post Eduard Lebedyuk · Mar 21, 2021 Sorry, meant: Do ..Adapter.%Client.SetHttpHeader(name, value)
go to post Eduard Lebedyuk · Mar 17, 2021 If you want to know if a compiled class exists, call: write $$$comClassDefined(class) It, however, does not answer the question of a compiled version being current.