X-Original-To: pgsql-jdbc-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 3282C9FB265 for ; Mon, 10 Jul 2006 05:59:49 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 20960-09 for ; Mon, 10 Jul 2006 05:59:41 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by postgresql.org (Postfix) with ESMTP id C84559FB256 for ; Mon, 10 Jul 2006 05:59:41 -0300 (ADT) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Fzrc2-0007DS-Am for pgsql-jdbc@postgresql.org; Mon, 10 Jul 2006 10:59:30 +0200 Received: from 83.145.96.118 ([83.145.96.118]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 10 Jul 2006 10:59:30 +0200 Received: from Marc.Herbert by 83.145.96.118 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 10 Jul 2006 10:59:30 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-jdbc@postgresql.org From: Marc Herbert Subject: Re: Limit vs setMaxRows issue Date: Mon, 10 Jul 2006 10:59:23 +0200 Lines: 23 Message-ID: References: <44990D57.9070506@sebster.com> <449A5654.5050208@sebster.com> <1150992947.19111.200.camel@archimedes> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 83.145.96.118 User-Agent: Gnus/5.1007 (Gnus v5.10.7) XEmacs/21.4 (Jumbo Shrimp, linux) Cancel-Lock: sha1:fBJlWJD9C+GLsYt+zpx55e8cGTY= X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200607/22 X-Sequence-Number: 15448 Mark Lewis writes: > JDBC is a little too low-level to give true database independence; you > can write portable queries, but you're severely restricted when it comes > to functionality supported by most databases but not in a standardized > way, such as limits, locking, performance hinting, sequences/serials, > etc. > > For simple, non-performance critical apps you can mostly get away with > it (as we did for a while with some of our products). But for anything > more sophisticated, your application really needs a way to deal with > database-specific SQL. Thanks a lot for sharing this very valuable experience from the field. However .setMaxRows() IS currently part of this portable and severely restricted JDBC performance feature set, so I see no reason for not trying to implement it as best as possible. The more performance you can get from JDBC, the less not portable code people will write. And JDBC is evolving too.