Re: JBoss keeps sending select 'hello' from dual

From: Niall Litchfield <niall.litchfield_at_gmail.com>
Date: Wed, 29 Oct 2008 10:48:42 +0000
Message-ID: <7765c8970810290348v389d74efrbac532fd1c22f929@mail.gmail.com>


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
> as
> possible. I suppose
> as "begin null; end;" might be cheaper in terms of resource usage than a
> select statement.
>
> Cheers,
> Martin
>
>
>
> --
> http://www.freelists.org/webpage/oracle-l
>
>
>

-- 
Niall Litchfield
Oracle DBA
http://www.orawin.info

--
http://www.freelists.org/webpage/oracle-l
Received on Wed Oct 29 2008 - 05:48:42 CDT

Original text of this message