Re: executeBatch()
From: Steffen Ramlow (s.ramlow_at_gmx.net)
Date: 06/12/04
- Previous message: Joe Weinstein: "Re: executeBatch()"
- In reply to: Joe Weinstein: "Re: executeBatch()"
- Next in thread: Joe Weinstein: "Re: executeBatch()"
- Reply: Joe Weinstein: "Re: executeBatch()"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 12 Jun 2004 18:03:38 +0200
Joe Weinstein wrote:
>> when I use a PreparedStatement for a executing a batch of inserts,
>> the driver executes a single sp_executesql for EACH statement in the
>> batch.
>>
>> Is this a limitation of the database or of the driver?
>
> The question is whether those sp_executesql calls are sent
> one-at-a-time with a wait for a DBMS response for each one, or
> whether they are sent
> all together in one network packet, with whatever parameter calls
> needed
> in between. The best performance would of course be to send
> everything in one packet. If it doesn't, it's because the driver
> implemented the syntax of batches without reaching for the best
> performance.
> Joe
One call per statement. Maybe this is necessary to get the results for each
statement?
-- Kein Plan überlebt die erste Feindberührung.
- Previous message: Joe Weinstein: "Re: executeBatch()"
- In reply to: Joe Weinstein: "Re: executeBatch()"
- Next in thread: Joe Weinstein: "Re: executeBatch()"
- Reply: Joe Weinstein: "Re: executeBatch()"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|