From: | Andreas Joseph Krogh <andreak(at)officenet(dot)no> |
---|---|
To: | pgsql-jdbc(at)postgresql(dot)org |
Subject: | Re: Array paramiters |
Date: | 2007-06-05 14:58:49 |
Message-ID: | 200706051658.50000.andreak@officenet.no |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
On Tuesday 05 June 2007 16:46:48 ben sagal wrote:
> I would ideally like to use a prepared statement, in which i can on each
> execution insert a different array? the method u suggest will not allow use
> of a prepared statement.
What do you think the variable "ps" is?
Most databases have a cache of preparedstatements and will manage to reuse one
based on the query's hash-value. If the int-array varies then the IN-clause
also differs, which might cause the planner to switch plan, and that might be
a good thing.
--
Andreas Joseph Krogh <andreak(at)officenet(dot)no>
Senior Software Developer / Manager
------------------------+---------------------------------------------+
OfficeNet AS | The most difficult thing in the world is to |
Karenslyst Allé 11 | know how to do a thing and to watch |
PO. Box 529 Skøyen | somebody else doing it wrong, without |
0214 Oslo | comment. |
NORWAY | |
Tlf: +47 24 15 38 90 | |
Fax: +47 24 15 38 91 | |
Mobile: +47 909 56 963 | |
------------------------+---------------------------------------------+
From | Date | Subject | |
---|---|---|---|
Next Message | Andreas Joseph Krogh | 2007-06-05 15:22:50 | Re: Connection Pool |
Previous Message | Pete Lewin-Harris | 2007-06-05 14:55:21 | Re: Array paramiters |