Yes, optimizer hints will be specified as comments.
I think this has to do with the fact that you might write
an application which should run against different
versions of the Informix databaseserver.
Not all Informix versions support optimizer directives,
but because they are specified as a comment, your
application will also run against the older Informix
versions.
Normally you could use curly braces or hyphens
for comments (for example in 'dbaccess') but it seems
that thru JDBC you have to use the curly braces only.
I don't know if that is somewhere documented, I didn't
find it in the JDBC programmers manual.
I would not recommend the use of optimizer hints, at least
not if you are running on Informix.
Informix has a very clever optimizer that is much more
sophisticated than Oracle's optimizer. The use of optimizer
hints might prevent the selection of a better access path
in the future. You think the optimizer hint you use is perfect,
but it is only perfect for the current point in time,
your data changes, so another access path might be
better in the future.
Run regular 'update statistics', that should be enough.
HTH.
Best regards
Eric
--
IT-Consulting Herber
WWW:
http://www.herber-consulting.de
Email:
eric@herber-consulting.de
***********************************************
Download the IFMX Database-Monitor for free at:
http://www.herber-consulting.de/BusyBee
***********************************************