logo       


Re: isSingleXXX in AbstractJdbc1Statement: msg#00177

Subject: Re: isSingleXXX in AbstractJdbc1Statement
Chris Smith wrote:

Also please don't reparse on each execution (which is the other thing
that isSingleSelect and friends try to avoid)


Definitely.  I don't plan to repeat the calculation; only to avoid deferring
it.  I think the deferred calculations introduce unnecessary work on every
execution, just to avoid about 100 processor cycles or so when first parsing
the query.

Not having benchmarked either approach I can hardly disagree :) Object creation is a real bugbear in our app so I tend to reflexively avoid it where I can, even when the direct CPU benefit is dubious.

This currently chews a *lot* of
CPU on the Java side while executing -- on the order of a 50/50 split
between Java and the backend.


I'm interested in your ideas on why this is the case.  I suspect a lot of it
may have something to do with building the text form of the parameters to
inject them into the query (in which case I'm working on solving exactly that
problem by making these changes).

I can only speculate, since the java profiling tools are so bad -- I'm yet to get a good CPU profile out of this bit of code. It all *seems* fairly cheap so I can only guess that it's an accumulation of many small operations along the way. Object creation doesn't seem to be the root of the problem, as even with heap settings that avoid GCing frequently it's chewing CPU the whole time, not just during GCs.

I should really do some more profiling of this area, I've just been avoiding it because it's so painful to do..

-O

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
   (send "unregister YourEmailAddressHere" to majordomo@xxxxxxxxxxxxxx)



Ruby Jobs
Java Jobs
Jobs in California
more...
what
job title, keywords
where
city, state, zip
jobs by job search
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
encryption.gpg....    ietf.rfc822/199...    freebsd.devel.i...    lang.haskell.li...    mail.squirrelma...    web.zope.plone....    yellowdog.gener...    text.xml.xalan....    recreation.phot...    kde.devel.educa...    hardware.bus.ca...    printing.ghosts...    voip.peering/20...    assembly/2006-0...    org.user-groups...    culture.interne...    network.i2p/200...    boot-loaders.ya...    xfree86.render/...    qnx.openqnx.dev...    jakarta.velocit...    user-groups.pal...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe