Hello everyone,
I just want to know if there is a difference in performance between using Class methods versus MAC routines?
For example:
do Method^MyFunction()
versus
do ##class(MyFunction).Method()
InterSystems Caché is a multi-model DBMS and application server. See more details here.
Hello everyone,
I just want to know if there is a difference in performance between using Class methods versus MAC routines?
For example:
do Method^MyFunction()
versus
do ##class(MyFunction).Method()
Hi
We have a use case whereby very large HL7 MDM messages, which contain many OBX segments, need to be processed by a custom business process. Part of the process is to iterate over each OBX segment and set a value in the same field for each segment.
Testing with a message that is ~500MB and contains over 8000 OBX segments I've encountered <STORE> errors, which surprisingly seems to be due to using SetValueAt. It appears to get through a few thousand segments before it falls over with the memory error, which I assume is because the SetValueAt method keeps in memory each preceding OBX segment?
📜 Santa Tecla, verse 8: "Hover your mouse over the screen, and the sea of data will open a path before you!!"
Hello community, first of all, apologies if anyone was offended by the blasphemy 😔
Have you ever thought it would be interesting to have the source code separated from the database data? Perhaps you'd like to be able to back up your code without copying gigabytes of client data.
Below, I'll explain the steps to separate your sea formed by the source code and data into two different databases within a namespace.
As of October 15, 2024, support for Caché & Ensemble on MacOS will be Deprecated.
Caché & Ensemble 2018.1.9 will continue to be supported, however there will be no further maintenance releases for MacOS. This means Caché & Ensemble 2018.1.9 will be the final version of these products on MacOS.
As a reminder, maintenance releases for Caché and Ensemble on the other supported platforms will come to an end on March 31, 2027. More details on that can be found in last year’s announcement.
Could any one tell me, how the index works in cache db, Consider for example, I have a table called "Employee" and the fields as "EMPID, EMPNAME, EMPAGE" and I am having index for EMPID as IDX_EMPID and trying to get the record using the following query as
SELECT * FROM EMPLOYEE WHERE EMPID="005"
and the table data be like
EMPID EMPNAME EMPAGE
001 ABC 20
002 AAA 21
003 ABB 23
004 BBB 20
005 BDF 24
006 EEE 22
Is there a way to capture the SQL command that was sent to Cache ? I need to know how to do this. Any help would be appreciated. It is from an external application using JDBC or OBDC. Thanks
Hey InterSystems-Community,
is it possible to get these Property Descriptions via SQL Query for example in the Management Portal?
Best regards,
Florian
Hi, I have a controller which handles accounts, and forwards to the relevant controller based on the path, example below:
XData UrlMap
{
<Routes>
<Map Prefix="/:accountId/anothercontroller" Forward="AnotherController"/>
</Routes>
}Problem is that inside AnotherController, the accountId path parameter is lost, I assume that's because the map forward simply checks if there's a match then forwards.
AnotherController:
XData UrlMap
{
<Routes>
<Route Url="/:somethingId" Method="POST" Call="CreateSomething"/>
</Routes>
}
ClassMethod CreateSomething(somethingId)
{
}$ZTIMESTAMP returns the date and time in UTC format, so to change it to the local time zone, use the following system method:
$SYSTEM.Util.UTCtoLocalWithZTIMEZONE($ZTIMESTAMP)The above output will be in the format ddddd,sssss.fff.
ddddd: Same format as $HOROLOG dates
sssss: An integer indicating the number of seconds elapsed since midnight on the current date
fff: Variable number of digits indicating the fractional part of a second
* Similar to $HOROLOG, except that $HOROLOG does not include fractional seconds.
I need to be able to take the size of the request from a given %CSP.request
however it seems the best the docs suggest is to get the length of characters in the request (using $order and Get, Count)...
this is not good enough for what I need to do, Any suggestions?
I scanned the docs and couldn't find anything.
Difference between %ResultSet.SQL and %SQL.Statement
Hello Community,
I'm a beginner and currently working on a project to convert CCDA files to FHIR using InterSystems IRIS. I have developed a web form to upload CCDA files, and I'm attempting to convert the uploaded CCDA files to FHIR. However, I am encountering an issue where the conversion process results in an empty entry.
Here's the Output it displays on HTML page:
Size of CCDA Stream: 74152
vR4
{"resourceType":"Bundle","type":"transaction","entry":[]}Here is my code: CCDtoFHIR.csp
how the deferred locks works?
Can anyone please explain that how can we apply locks on objects and use them with examples.
You can use the List query of the %SYS.Audit to output audit logs programmatically.
The sample code is as follows:
Set statement=##class(%SQL.Statement).%New()
Set status=statement.%PrepareClassQuery("%SYS.Audit","List")
Set rs=statement.%Execute()
Set tab = $char(9)
While rs.%Next() {
Write rs.%Get("TimeStamp")_tab_rs.%Get("Event")_tab_rs.%Get("Username"),!
}I've created a succesfull connection to Caché from SQL Server.
But when I run a SELECT on a table it gives an error on for example PrijsAkCatV.
Probably a datatype-error.
Does someone has a solution for this problem ?
Caché Table :
Property PrijsAkCatVm As Asci.Getal(CAPTION = "Aankoopprijs VM", HINT = "Bruto aankoopprijs in vreemde munt|De bruto aankoopprijs (catalogusprijs) in vreemde munt per eenheid van aankoop.#Prix d'achat brute en devise|Le prix d'achat brute en devise par unité d'achat.", SCALE = 4);
what is the purpose of default settings in System management portal?
Can any one explain about types of inbound and outbound adapters along with its methods?
Thanks in advance
How to increase the performance of the production when getting multiple messages from various Healthcare organizations
Migrate to VS Code this summer with our comprehensive Basics and Advanced Features training courses.
George James Software is offering migration strategies and training to support the adoption of VS Code with InterSystems IRIS, IRIS for Health, HealthShare, and Caché. We're in the unique position of having deep knowledge and understanding of both InterSystems platforms and VS Code, through our regular contributions to VS Code itself.
Hi everyone,
We have successfully configured the Patient Index and are now looking to bring it to upper environments. Our plan is to export the Linkage Definition and import it into higher environments to avoid any manual work. However, I am having trouble finding an export option in the Linkage Definition Designer and locating the globals that hold this setup.
I would greatly appreciate any tips or guidance on how to export/import the Patient Index configuration between environments.
Thank you in advance!
Data for InterSystems products (table row data, object instance data) is stored in global variables.
The data size of each global can be obtained by clicking the properties of the global you want to view from the Management Portal > System > Configuration > Local Database > Globals page, and then clicking the Calculate Size button on the Global Attributes page that appears.
To display the data sizes of globals in a namespace, you can call ^%GSIZE utility on the terminal.
The method of execution is as follows.
The procedure for uploading/downloading from an FTP server is as follows.
1. Upload the image file to the FTP server
In Index types, I can see "Extent Index", Please tell me in detail about it
If you want to run an OS executable file, command, or a program created within an InterSystems product when the InterSystems product starts, write the processing in the SYSTEM^%ZSTART routine. (The %ZSTART routine is created in the %SYS namespace).
Before you write any code in SYSTEM^%ZSTART, make sure that it works properly under all conditions.
If the ^%ZSTART routine is written incorrectly, or if it is written correctly but the command does not return a response or an error occurs during processing, InterSystems products may not be able to start.
Is there any way to include a CSP page within a CLS?
Example: #Include file.csp
Context: I work with a legacy that most screens are built using only CLS. I'm trying to change this by separating the frontend layers to be built only with CSP and backend layers using CLS. I improvised a method that injects an iframe to render the CSP in CLS through that iframe, but I'm still not happy. I need to know if there is any way to include this CSP using some specific resource for this.
I have a table that is already created and contains data. I need to create a unique constraint that is a combination of two fields. Is there a way to do this in a SQL statement? Also, I would lke to know how to add it in the table class.
ISCAgent is automatically installed with Cache, runs as a service and can be configured tostart with the system. This is fine – but the complication comes when this is on VCS clusters withMirroring on. When installing a Single Instance of Cache in a Cluster, point number 2. Says “Createa link from /usr/local/etc/cachesys to the shared disk. This forces the Caché registry and allsupporting files to be stored on the shared disk resource you have configured as part of theservice group.”So on the second passive node – this statement makes ISCAgent startup with the system, nor manuallystarting it
Hello community,
Just wanted to share..
While requested to access some service I was told to authenticate my request using OAuth 1.0 (revision A) with HMAC-SHA256 as a signing method. And knowing little to none about it. I started by testing it first in Postman, and all worked just fine. BUT with Object Script, well.. a big smile goes here! :) as I had some issues and no one to suggest..
In the end the most helpful thing to do was to refer the docs here : https://oauth.net/core/1.0a/ while the signature method in it is for HMAC-SHA1 and RSA-SHA1 it is valid for HMAC-SHA256 as well.
Can any one tell me the difference between %KillExtent and %DeleteExtent with example