v5:userguide:learn_bind:bulkbinding
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
v5:userguide:learn_bind:bulkbinding [2016/03/23 01:55] – created mnewnham | v5:userguide:learn_bind:bulkbinding [2016/03/23 02:09] (current) – [Portable Support] mnewnham | ||
---|---|---|---|
Line 4: | Line 4: | ||
Some databases, Oracle in particular, offer massive performance improvements in insertion performance when used with 2 dimensional bind arrays. This technique is known as '' | Some databases, Oracle in particular, offer massive performance improvements in insertion performance when used with 2 dimensional bind arrays. This technique is known as '' | ||
- | ==== Concept ==== | + | ===== Concept |
Using our previous example, let us assume that we need to insert multiple '' | Using our previous example, let us assume that we need to insert multiple '' | ||
+ | ===== Enabling Bulk Bind Support ===== | ||
+ | Bulk Binding using 2D arrays is disabled by default in ADOdb. It must be deliberately enabled in the driver using the following syntax: | ||
+ | |||
+ | <code php> | ||
+ | include ' | ||
+ | |||
+ | $db = newAdoConnection(' | ||
+ | |||
+ | $db-> | ||
+ | |||
+ | /* | ||
+ | * Enable bulk binding | ||
+ | */ | ||
+ | $db-> | ||
+ | </ | ||
+ | |||
+ | ===== Code Modifications ===== | ||
Traditionally, | Traditionally, | ||
Line 45: | Line 62: | ||
</ | </ | ||
===== Portable Support ===== | ===== Portable Support ===== | ||
- | In databases without Bulk Binding support, ADOdb simply iterates through the $bindVars array, and executes | + | In databases without Bulk Binding support, ADOdb simply iterates through the $bindVars array, and executes |
- | ===== Enabling Bulk Bind Support ===== | ||
- | Bulk Binding using 2D arrays is disabled by default in ADOdb. It must be deliberately enabled in the driver using the following syntax: | ||
- | |||
- | <code php> | ||
- | include ' | ||
- | |||
- | $db = newAdoConnection(' | ||
- | $db-> | ||
- | |||
- | /* | ||
- | * Enable bulk binding | ||
- | */ | ||
- | $db-> | ||
- | </ | ||
<WRAP center info 300px> | <WRAP center info 300px> | ||
**End Of Tutorial** | **End Of Tutorial** | ||
</ | </ |
v5/userguide/learn_bind/bulkbinding.txt · Last modified: 2016/03/23 02:09 by mnewnham