Question Chen-Chieh Hsu · Jan 24, 2018

How to extend the timeout for the executing the SQL query from SMP

I have a query would run very long time and I get always timeout error from SMP.

Thank for your help.

Comments

Jeffrey Drumm · Jan 24, 2018

Do you have access to the Cache terminal?

NAMESPACE> Do $System.SQL.Shell()

I know it's not exactly what you asked for, but it doesn't time out ...

0
Robert Cemper  Jan 25, 2018 to Jeffrey Drumm

Yeah!
it's not only no timeout but you can easy debug all your SQLCOMPUTED  code.

0
Robert Cemper  Jan 25, 2018 to Alexander Koblov

In principle OK.
But also ODBC or JDBC connection have timeouts limits. Though  they are typically longer than CSP.

0
Jeffrey Drumm  Jan 26, 2018 to Kyle Baxter

So how is this an ACTUAL solution if you're going to get cursed at for using it in a Production environment? devil

0
Alexander Koblov · Jan 25, 2018

Generally, for long-running queries it makes sense to use external tools.

E.g. DBVisualizer or SQuirrel

Timeout for CSP Gateway to wait response from Caché is in Management Portal -> System Administration -> Configuration -> CSP Gateway Management.

Then Default Parameters -> Server Response Timeout.

0
Kyle Baxter  Jan 26, 2018 to Jeffrey Drumm

Because I know Chen-Chieh is a developer .

0
Kyle Baxter · Jan 26, 2018

For an ACTUAL solution to your question - go to the SMP and to System Administration->Configuration->(CSP/Web) Gateway Management.  From there go to 'Default Parameters'.  The timeout you want to change is the Server Response Timeout.  If you are using the private apache you can also edit the CSP.ini file in <Install>/csp/bin/.  Of course, if this is a Production Systems DO NOT DO THIS OR I WILL FIND YOU AND SAY VERY MEAN THINGS!

0