Rechercher

Question
· Mai 17, 2024

How are Stream saved?

Hi, I was working with %sStream.FileBynary and following the doc when I find an info that I'm not sure of.
In the part of the doc where it talks about saving streams, it does not precise where it is saved.
I tried to fill my stream, then rewind, then set the file and finally saved.
And it puts in my default directory with the temporary name.
If I do a zwrite of my stream, I get these properties about the file and directory.
(StoreFile) = "zKc2m8v1.stream"
(NormalizedDirectory) = "C:\InterSystems\Community\mgr\user\stream\"

I figured it was maybe because I used a relative path while using LinkToFile. Tried a full path and it changed the property of the Stream but the save doesn't seem to work.

With zw I can see those two properties.

(StoreFile) = "test.cms"

(TempFile) = "test.cms"

Do I need to remove the tempFile? Am I missing something?
https://docs.intersystems.com/irislatest/csp/docbook/DocBook.UI.Page.cls...

6 Comments
Discussion (6)3
Connectez-vous ou inscrivez-vous pour continuer
Article
· Mai 17, 2024 3m de lecture

IRIS/Caché SQL优化经验分享 - 真实案例分享

最近有某国内三甲医院为满足评级和飞行检查要求,希望提升HIS和IRIS的SQL查询效率,客户和实施工程师整理了一个慢查询的SQL列表, 有一些查询比较慢, 查询时间在甚至大于60分钟。

在我们和厂商共同努力下,对整个库的SQL查询做了优化。 下表是记录了我们在进行了大部分优化工作后的结果,您可以看到大多查询从几十分钟减少到了几十秒甚至1秒以内。其中有几个慢到几分钟的查询,最后经过细调, 也把查询耗时减少到了一分钟以内。 优化的效果还是很明显的。

这里我分享一下操作的要点,以便给其他有同样问题的客户一个思路。

其实如果您看过我前面的帖子,应该已经有了基本的概念。我就把工作流程总结一下,其实就这么几个步骤:

步骤一:

Discussion (0)1
Connectez-vous ou inscrivez-vous pour continuer
Question
· Mai 16, 2024

Iris Client on MacOS - how to run it after installation

Hi,

I have succesfully installed IRIS client on MacOS (see bottom half of this post).  What's next?  How do I access the menu to launch IRIS Client, access Studio, and connect to remote server etc??

Thanks,

W

----------------------------------------------------------------------------------------------------------

$$> sudo sh /Users/xxx/Downloads/HealthConnect-2023.1.3.517.0-macx64/irisinstall_client

Password:

Your system type is 'Mac OS X/x86/64-bit'.

Enter a destination directory for client components.

Directory: /Users/xxx/InterSystems/Iris_Client

Directory '/Users/xxx/InterSystems/Iris_Client' does not exist.

Do you want to create it <Yes>?  yes

Installation completed successfully

1 Comment
Discussion (1)2
Connectez-vous ou inscrivez-vous pour continuer
Annonce
· Mai 16, 2024

Technological Bonuses Results for Vector Search, GenAI and ML Contest

Hi Developers!

We are happy to present the bonuses page for the applications submitted to the Vector Search Programming Contest!

Project

Vector Search

IntegratedML

Embedded Python

LLM AI or LangChain

Suggest a new idea

Find a bug in Vector Search, IntegratedML or Embedded Python

Docker

IPM

Online Demo

Community Idea Implementation

First Article on DC

Second Article on DC

First Time Contribution

Video on YouTube

Total Bonus

Nominal 5 3 3 3 1 2 2 2 2 4 2 1 3 3 38
geo-vector-search 5       1   2 2 2   2 1   3 18
Hackupc24_inter 5     3                 3   11
AriticleSimilarity 5   3 3 1   2 2 2   2       20
iris-image-vector-search 5   3       2 2 2   2 1     17
ImageSearchVideo 5   3       2 2         3   15
HackUPC24_Klìnic 5     3     2   2       3   15
iris-ai-studio 5     3 1   2   2   2 1   3 19
companies-search 5   3 3 1   2 2     2 1 3 3 25
iris-medicopilot 5   3 3     2 2     2 1   3 21
AutoML Churn Predict Showroom   3         2 2             7
BG-AppealAI 5   3 3     2 2 2   2     3 22
DNA-similarity-and-classify 5   3   1   2 2     2 1   3 19
WALL-M 5     3 1               3 3 15
iris-VectorLab 5   3     2 2 2     2 1     17
iris-health-coach 5   3 3     2 2     2 1   3 21

Please apply with your comments for new implementations and corrections to be made here in the comments or in Discord.

31 Comments
Discussion (31)5
Connectez-vous ou inscrivez-vous pour continuer
Question
· Mai 16, 2024

RSA Encryption Decryption

Hi guys,

 

I try to make a test of encryption, decryption of a simple text.

I can crypt my text, but I can't decrypt it, do you see somewhere a dummy error of my part ?

Thanks for help

ClassMethod UnitTest()

{

  set inputPlainText = "David"

 

  // get private key

  set privKeyFileName = "C:\temp\toto.pem"

  set privobjCharFile = ##class(%Stream.FileCharacter).%New()

  set privobjCharFile.Filename = privKeyFileName

  set privKey = privobjCharFile.Read()

 

  set Inputbase64 = $SYSTEM.Encryption.Base64Encode(inputPlainText)

 

  // encrypte text using RSA

  set encryptText = $System.Encryption.RSAEncrypt(Inputbase64, privKey)

 

  // decrypt text using RSA

  set outputbase64 = $System.Encryption.RSADecrypt(encryptText, privKey)

 

  set plaintext = $SYSTEM.Encryption.Base64Decode(outputbase64)

 

  return plaintext

}

2 Comments
Discussion (2)1
Connectez-vous ou inscrivez-vous pour continuer