Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

RE: Question: JDBC, PreparedStatements: msg#00398

db.maxdb

Subject: RE: Question: JDBC, PreparedStatements

Yes. That's because the cached information depends on the session,
and cannot exist without it.

Alexander Schröder
SAP DB, SAP Labs Berlin

> -----Original Message-----
> From: Christoph Weser [mailto:Christoph.Weser@xxxxxxxxx]
> Sent: Friday, November 28, 2003 2:05 PM
> To: maxdb (E-Mail)
> Subject: AW: Question: JDBC, PreparedStatements
>
>
> Hello!
>
> So that means, that in case of 'n' connections in a pool, I
> have the first
> "caching benefit/cachehit" maybe after the (n+1) execution of a
> connection.preparedStatement("some sql") in worst case?
>
> Is this right?
>
> Chris
>
>
> -----Ursprüngliche Nachricht-----
> Von: Schroeder, Alexander [mailto:alexander.schroeder@xxxxxxx]
> Gesendet: Freitag, 28. November 2003 14:01
> An: Christoph Weser; maxdb (E-Mail)
> Betreff: RE: Question: JDBC, PreparedStatements
>
>
> Hello Christoph,
>
> if you specify cache=all, information is cached *per connection*.
> That means there is not necessarily a need for caching the
> information by yourself.
>
> Alexander Schröder
> SAP DB, SAP Labs Berlin
>
> > -----Original Message-----
> > From: Christoph Weser [mailto:Christoph.Weser@xxxxxxxxx]
> > Sent: Friday, November 28, 2003 1:53 PM
> > To: maxdb (E-Mail)
> > Subject: Question: JDBC, PrepparedStatements
> >
> >
> > Hello everyone!
> >
> > I am using sapdb 7.4 and the newest jdbc driver. For
> > connection, the URL
> > "jdbc:sapdb://localhost:7210/DatabaseName?cache=all" will be used.
> >
> > While processing requests, the following fragment is quite
> > often executed:
> >
> > pStatement = connection.prepareStatement("Some sql command with ?");
> > pStatement.setString(1,"Test");
> > pStatement.executeUpdate();
> > pStatement.close();
> >
> > The connection 'connection' is from a connection pool and the
> > connection
> > will be given back to the pool after every single request.
> > (Every request is a stateless request for which a own instance of a
> > requesthandler will be generated. That's why every request
> > the connection
> > will be given back.)
> >
> > Am I right, that the connection.prepareStatement()-method
> > will cause the
> > JDBC-driver to lookup in his own preparedStatement-Cache?
> > Would it be better to implement a preparedStatement-Cache by my own?
> > What's best practice?
> >
> > Thanx a lot for help to everyone!
> >
> > Chris
> >
> > --
> > MaxDB Discussion Mailing List
> > For list archives: http://lists.mysql.com/maxdb
> > To unsubscribe:
> http://lists.mysql.com/maxdb?unsub=alexander.schroeder@xxxxxxx
>
> --
> MaxDB Discussion Mailing List
> For list archives: http://lists.mysql.com/maxdb
> To unsubscribe:
http://lists.mysql.com/maxdb?unsub=alexander.schroeder@xxxxxxx

--
MaxDB Discussion Mailing List
For list archives: http://lists.mysql.com/maxdb
To unsubscribe: http://lists.mysql.com/maxdb?unsub=gcdm-maxdb@xxxxxxxxxxx




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
qplus.devel/200...    network.jabber....    debian.qa-packa...    encryption.gpg....    python.dabo.dev...    uclinux.devel/2...    science.mathema...    recreation.pesc...    kernel.ck/2004-...    mozilla.devel.e...    tex.latex.prosp...    ietf.multi6/200...    bbc.cvs/2002-11...    xfree86.newbie/...    jakarta.taglibs...    altlinux.hardwa...    comedi/2002-05/...    horde.bugs/2004...    games.diplomacy...    finance.e-gold....    web.dom.test-su...    lang.ruby.rails...    os.netbsd.devel...    video.gstreamer...   
Home | 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

Navigation