Re: JBoss keeps sending select 'hello' from dual
Date: Wed, 29 Oct 2008 10:48:42 +0000
select <something> from dual
is about as optimized as you can get these days - you'll be extremely unlikely to find a lower impact statement. The most optimized statement is still the one that you don't execute, but if you do have to execute one select <something> from dual is about as good as you get. I don't imagine that swapping to pl/sql will be lower impact!
On Wed, Oct 29, 2008 at 8:13 AM, Martin Busik <martin.busik_at_busik.de> wrote:
> If you need it - try to find a valid sql which consumes as less resources
> possible. I suppose
> as "begin null; end;" might be cheaper in terms of resource usage than a
> select statement.
-- Niall Litchfield Oracle DBA http://www.orawin.info -- http://www.freelists.org/webpage/oracle-lReceived on Wed Oct 29 2008 - 05:48:42 CDT