2007-04-13 00:52:30 +04:00
|
|
|
|
|
|
|
<code type="php">
|
2006-07-24 01:08:06 +04:00
|
|
|
// select all users and load the data directly (Immediate fetching strategy)
|
|
|
|
|
2006-08-22 02:51:27 +04:00
|
|
|
$coll = $conn->query("FROM User-I");
|
2006-07-24 01:08:06 +04:00
|
|
|
|
|
|
|
// or
|
|
|
|
|
2006-08-22 02:51:27 +04:00
|
|
|
$coll = $conn->query("FROM User-IMMEDIATE");
|
2006-07-24 01:08:06 +04:00
|
|
|
|
|
|
|
// select all users and load the data in batches
|
|
|
|
|
2006-08-22 02:51:27 +04:00
|
|
|
$coll = $conn->query("FROM User-B");
|
2006-07-24 01:08:06 +04:00
|
|
|
|
|
|
|
// or
|
|
|
|
|
2006-08-22 02:51:27 +04:00
|
|
|
$coll = $conn->query("FROM User-BATCH");
|
2006-07-24 01:08:06 +04:00
|
|
|
|
|
|
|
// select all user and use lazy fetching
|
|
|
|
|
2006-08-22 02:51:27 +04:00
|
|
|
$coll = $conn->query("FROM User-L");
|
2006-07-24 01:08:06 +04:00
|
|
|
|
|
|
|
// or
|
|
|
|
|
2006-08-22 02:51:27 +04:00
|
|
|
$coll = $conn->query("FROM User-LAZY");
|
2007-04-13 00:52:30 +04:00
|
|
|
</code>
|