Vitor Hugo Campos
Member
Hello folks,
My company's DBA is complaining we are using literals too many times and this is severely degrading our database server performance. He showed me some queries where this problem happens and almost all of them are due to the use of the QBE mode, where literals are put for each field users want to query. I recall old versions of DOA used to add :qbe__ like bind variables, but this behavior changed on new versions (I'm using DAO 4.0.6.2). I didn't find any property to change that behavior. Is there a way I can change that?
I know it is possible to change the user's session to force the use of bind variables (i.e. ALTER SESSION SET CURSOR_SHARING = FORCE), but that does n't solve the real problem and it also add some other problems.
Thank you in advance,
Vitor Hugo Campos.
My company's DBA is complaining we are using literals too many times and this is severely degrading our database server performance. He showed me some queries where this problem happens and almost all of them are due to the use of the QBE mode, where literals are put for each field users want to query. I recall old versions of DOA used to add :qbe__ like bind variables, but this behavior changed on new versions (I'm using DAO 4.0.6.2). I didn't find any property to change that behavior. Is there a way I can change that?
I know it is possible to change the user's session to force the use of bind variables (i.e. ALTER SESSION SET CURSOR_SHARING = FORCE), but that does n't solve the real problem and it also add some other problems.
Thank you in advance,
Vitor Hugo Campos.