Question omer · Feb 11 What causes a broker RESPONSE to have Transfer-Encoding:chunked? So the title says it all:What causes a broker RESPONSE to have Transfer-Encoding:chunked?sometimes the response seems to not have the "Transfer-Encoding:chunked" but sometimes it does, what may casue this behaviour? #Caché #InterSystems IRIS 0 0 0 15
Question omer · Feb 11 Change %Response.ContentLength Hey everyone, Might be a stupid question, but i was trying to set the ContentLength of the %response object in my website.In different places (like the onPreHttp / onPostHttp etc) but none seems to work.The reason behind it is to send a more accurate representation of the actual data I send, instead of having the overhead of the broker that adds more characters , I want the exact length of the response accounting only for the data that I actually returned. #Caché #InterSystems IRIS 0 2 0 25
Question omer · Jan 15 Where and How can i see the Stream that contains the response back to the client of a CSP application Hey, So the title pretty much describes the question:Where and How can i see the Stream that contains the response back to the client of a CSP application.When the request is being processed and finished we return a response to the client - We do that by writing the data to a stream and that stream is sent back to the client.I wanted to know how i can access the point right before that Data is actually written to the client back (meaning the place where the response is actually being send back, the last point of contact). #CSP #Caché #InterSystems IRIS 0 9 0 92
Question omer · Jan 14 INSERT OR UPDATE WITH A COUNTER Hello, So i want to use the INSERT OR UPDATE command so i can update a COUNTER for a given name: INSERT OR UPDATE myTableSET name='Omer', counter = counter + 1; as you can see with the above code - if the row is non-existent then we get an error because COUNTER is NULL! I tried the following to fix this but all have failed: #SQL #Caché #InterSystems IRIS 2 23 0 203
Question omer · Jan 13 Intersystems Data Models and ACID Hello! So my question is quite simple, Do the different data models of Intersystems all support the ACID properties?I assume that for the SQL data model implementation it does, But does it also work for global (i.e the hierarchical data model)? #Data Model #SQL #Caché #InterSystems IRIS 1 7 0 86
Question omer · Jan 12 InterSystems Response Content-Length Hello, In short, I am trying to get the Content-Length of my response, We have a CSP application, when we get a new request we begin to process it, throughout the app we WRITE to the response in different places, now when the response is about to be sent back to the client - we would like to know its Content-Length (in the RESPONSE HEADERS). So it comes down to two questions:1. How can we access the Content-Length of our response? #CSP #Caché #InterSystems IRIS 0 1 0 59
Question omer · Nov 24, 2024 Intersystems REGEX engine I am working on a product that uses REGEX and matches it. The regex is tested both on the client-side (using the JavaScript REGEX engine) and both on the server-side.But I couldn't find one word about the way intersystems parses the regex, It is quite elementary to state which which engine it works with. from what I could gather from early implementations and such, the engine is based off PCRE, But I need to confirm this somehow, Can anyone give me a definitive answer, Is there any tool to test the regex other than writing it myself?? #JavaScript #Caché 0 2 0 134
Question omer · Oct 30, 2024 Running a routine by name in a non-conventional way? So I know we can run routines using both XECUTE or @ However both of them run slower than just running the routine without it. (that is because as far as i understand, XECUTE command for example will re-compile before running?)the question is: how can I run a routine by name - and keeping the performance as good as possible? #Caché #InterSystems IRIS 0 1 0 98
Question omer · Oct 28, 2024 Load and compile error Hello, I am using the following: s status = $SYSTEM.OBJ.Load("myClassName," "c") and while trying to compile it i get an error that a property or method does not exist, more specifically: #Caché #InterSystems IRIS 0 3 0 93
Question omer · Oct 1, 2024 Execute a routine with argument by name - Without using Xecute! Hello everyone, so lets say i have the following: HelloQsay(arg) w arg Q and i am trying to execute it by its name such as: s a = "say^hello" *execute the name inside a* now I know for a fact that if say were written without any argument then do @a would work! but I can I pass an argument in this case?I don't want to use Xecute because I am in need of really high performance code. #Key Question #Caché #InterSystems IRIS 2 10 1 219
Question omer · Sep 29, 2024 Run a routine that was created and compiled with %Routine library I created and then compiled a routine using the %Routine library s routine = ##class(%Routine).%New(fileName_"."_extension)d routine.Write(parsedRule)//s status = routine.Save()s status = routine.SaveStream(,.refresh)if ($$$ISERR(status)) throw status #Compiler #Caché #InterSystems IRIS 0 2 1 74
Question omer · Jun 25, 2024 How can i see the request size in kilobytes/megabytes? 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. #CSP #Caché #InterSystems IRIS 0 5 0 134
Question omer · Apr 11, 2024 Delete the reference MEMORY So as asked, I am not talking about KILL - KILL as stated in the docs: This command removes the variable. If there are no further references to the object, this command also removes the object from memory, I want to remove the object from memory even if it is still referenced in memory - I understand that cache is not a low-level programming language, But i was hoping there is a way. Notice that have a RegisteredObject and it is a single reference, It is different than the UnSwizzles suggested in other posts. #Caché #InterSystems IRIS 0 6 0 182
Question omer · Feb 13, 2024 Create a datatype that overrides the Set and Get I want to create a datatype that Extends from String and in its set and get it will parse the string or do whatever - my GET works, my SET doesn't. #Caché 0 7 0 250