The CALLIN^%ZSTART entry point gets executed when an external program begins or completes a callin. You can add logging there to see if something initiates callin.
- Log in to post comments
The CALLIN^%ZSTART entry point gets executed when an external program begins or completes a callin. You can add logging there to see if something initiates callin.
Write the same dataset loop (with embedded sql) in Caché ObjectScript and see how much time does it take to fetch the same rows.
You can modify users account via Security.Users class.
So:
Do you have persistent classes for these messages?
What's speed are you getting? Rows per second and average size of row for example.
Have you tried comparing that speed with direct iteration over a same resultset in COS?
The largest pool size is recommended to be the same as the number of CPUs in the Ensemble server, since there are only going to be as many jobs available as the number of CPUs.
Why should number of jobs be less or equal to the number of cores? I tested (admittedly only one) BP for processing some objects and results (messages processed per second) were better with PoolSize=100, than with PoolSize=50 on a system with 1CPU/8cores.
There is also WebTerminal project.
Sorry, I posted a link to an old FieldTest version, it not available now. I replaced the link in my example with actual version, so it should work now (delete cookies.txt and both lines need to be executed again).
You can write a dtl transformation or a generic business process which accepts object, dynamically gets a list of properties to convert (All %String properties? Some kind of a dictionary? Pattern?) and strips diacritic signs from them.
If you have/use Ensemble you can check how EnsLib.SQL.CommonJ class operates.
I use the following script (courtesy of Alexander Koblov):
wget --delete-after --keep-session-cookies --save-cookies cookies.txt --post-data='UserName=?????&Password=???????' 'https://login.intersystems.com/login/SSO.UI.Login.cls?referrer=https%253A//wrc.intersystems.com/wrc/login.csp' wget --load-cookies cookies.txt --content-disposition 'https://wrc.intersystems.com/wrc/WRC.StreamServer.cls?FILE=/wrc/distrib/HS-2016.1.2.208.0-hscore15.01_hsaa15_hspi15_hsviewer15.01_linkage15-b6402-lnxrhx64.tar.gz'
First line for authentication and saves cookies into a file. Second line loads cookies from file and downloads with file.
Empty results or an error probably.
System methods remover.
You can call %KillCache method in a cubeclass. It does exactly that. For example:
write ##class(HoleFoods.Cube).%KillCache()If you are on windows you may have access problems while writing into the root of system drive.
I suggest you:
set sc = ##class(Utils.XLS).generateFileFromSQL(...)
write $System.Status.GetErrorText(sc)I think compile should be called once after the loop. While in the loop you can build a local array of affected classes and pass it to the compiler after the loop.
REST is a 2014.1 feature.
Why not schedule a task in Caché Task Manager?
Thank you!
You can expose this method to SQL as an SQL stored procedure.
We have a google calendar (and map) integration for Caché as a part of System of training courses grant project. Check out Stc.Google package there, especially Stc.Google.Calendar class.
Yes. You can use cursors for that. In the following example rowlist contains list of affected ids. You can get it all at the end or get individual ids right before or after the update, or even decide on the update based on id/val values:
Class User.NewClass1 Extends %Persistent
{
Property val;
/// do ##class(User.NewClass1).Test()
ClassMethod Test()
{
do ..%KillExtent()
&sql(INSERT INTO NewClass1 SET val = 0)
&sql(INSERT INTO NewClass1 SET val = 3)
set rowlist = ""
&sql(DECLARE NewClass1 CURSOR FOR
SELECT %ID,val
INTO :id, :val
FROM NewClass1)
&sql(OPEN NewClass1)
for {
&sql(FETCH NewClass1)
quit:SQLCODE'=0
set val2 = val*2
write "Processing id: ", id,!
set rowlist = rowlist _ $lb(id)
&sql(UPDATE NewClass1 SET val = :val2 WHERE CURRENT OF NewClass1)
}
&sql(CLOSE NewClass1)
zw rowlist
}
}It would output in a terminal:
>do ##class(User.NewClass1).Test()
Processing id: 1
Processing id: 2
rowlist=$lb("1","2")Documentation:
Here's an example:
Class User.NewClass1 Extends %Persistent
{
Property streams As list Of %Stream.GlobalCharacter;
ClassMethod Test()
{
do ..%KillExtent()
set obj = ..%New()
set stream1 = ##class(%Stream.GlobalCharacter).%New()
do stream1.WriteLine("Hi")
set stream2 = ##class(%Stream.GlobalCharacter).%New()
do stream2.WriteLine(123)
do obj.streams.Insert(stream1)
do obj.streams.Insert(stream2)
write $System.Status.GetErrorText(obj.%Save())
kill
set obj = ..%OpenId(1)
for i=1:1:obj.streams.Count() {
write "Stream #", i, ": ", obj.streams.GetAt(i).Read($$$MaxCacheInt)
}
}
}This method links stream object to an existing file:
Method imagefile()
{
set obj = ##class(Sam.binary).%New()
read "enter path to image: ",img
set st = obj.Image.LinkToFile(img)
write $System.Status.GetErrorText(st)
set st = obj.%Save()
}Please post your class definition here.
Yes.