Question Maarten Van den... · Dec 15, 2017 ECP: Run code on the database server instead of the application server Hi all,I have a database with 140 million records containing financial transactions. When I do a query to calculate the sum of those records spanning a number of months it takes around 4 seconds on my database server which seems reasonable. However if I run the same query on an application server it takes around 40 seconds to do the same query.In just this instance I would like to run that piece of code on the database server instead of the application server. It's a query that is only run a few times a day so I would prefer to have a fast result and don't mind putting a bit more stress on my database server for that. #Caché #ECP 0 4 0 762
Question Maarten Van den... · Nov 10, 2017 SAX Parser error: invalid byte 'n' at position 2 of a 3-byte sequence while processing Anonymous Stream Hi everyone, I'm having trouble parsing XML containing unicode characters which I receive from an external webservice. I believe my file is saved properly with UTF-8 encoding but the SAX Parser still throws me an error. I have 2 classmethods: 1 general one (get) to make a request to a webservice and return the date, and 1 (getSportsPerDate) to make a specific call and then parse the data. #XML #ObjectScript #Caché 0 5 0 2.3K
Question Maarten Van den... · Sep 12, 2017 Different SessionId between %CSP.Page and %CSP.Websocket Hi,We are having a problem where sometimes a websocket connection started from a CSP page does not share the same SessionId as the CSP page itself. We are also using ECP and can see that both sessions are often even on different application servers. #Caché #CSP 0 2 0 511
Question Maarten Van den... · Jul 18, 2017 Trigger a class compilation Hi all,I was wondering if there is any way to trigger the compilation of a class based on the compilation of another (unrelated) class. For example:Class 1 = test.classClass 2 = test.class.type.oneClass 3 = test.class.type.twoEvery time class 2 or class 3 is compiled in Studio I would like to have class 1 automatically compiled as well.The reason I need this is because class 1 has a method with CodeMode set to objectgenerator which generates some code based on what is found in classes 2 and 3. #Caché #Compiler #Studio 0 8 0 724