fine tuning of query execution using cursor.setinputsizes gives - ORA-01036: illegal variable name/number #423
-
Hello, I have the following query:
This query is executed without errors using the function shown below. The issue is with execution time, it takes too long for small number of records:
needs ~5 seconds to complete ->
In case when 9 records needs to be deleted, it takes ~29 seconds ->
I have tried to use setinputsizes param with following adjustments of the same function but it gives an error:
gives:
Any suggestions how to overcome this issue? BR, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The number of parameters to setinputsizes should match the number of bind variable placeholders in the SQL string, i.e. be 1 in your case. Since the data is already numeric, forcing the type may not help: but check your SQL optimizer plan.
|
Beta Was this translation helpful? Give feedback.
The number of parameters to setinputsizes should match the number of bind variable placeholders in the SQL string, i.e. be 1 in your case.
Since the data is already numeric, forcing the type may not help: but check your SQL optimizer plan.