We have a database with a generous use of the CLOB/TEXT datatype all over the schema. After running lots of queries yesterday on multiple tables having a CLOB type, I came to the conclusion that as soon as there is a CLOB in the SELECT clause (even if the value if NULL/empty), the query takes a huge performance hit.
We have a client-server application (not a web-based) one that is deployed at the customer's site. Also, we support several databases at the backend, so it is not feasible for us to do database-specific optimizations in the code.
Going away from the CLOBs is not really an option.
I understand most of the optimization needed to be done for a CLOB/TEXT datatype would be on the database server. What kind of recommendations should I pass along to the customers for this?
What could I do as a developer in the code to help speed up the queries?