You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -245,22 +245,22 @@ $DB->closeConnection();
245
245
Iterator
246
246
------------
247
247
248
-
**Use an iterator** when you want to read thousands of data from the database for statistical or full update of Elastic Search or Solr indexes.
248
+
**Use iterator** when you want to read thousands of data from the database for statistical or full update of Elastic Search or Solr indexes.
249
249
250
-
An iterator is a traversable object that does not read all the data queried from MySQL into memory.
250
+
[Iterator](https://secure.php.net/manual/en/class.iterator.php) is a traversable object that does not read all the data queried from MySQL into memory.
251
251
252
252
So you can safely use `foreach` to handle millions of MySQL result sets without worrying about excessive memory usage.
253
253
254
254
Example:
255
255
256
256
```php
257
-
$it = $DB->iterator("SELECT * FROM fruit limit 0, 1000000;");
257
+
$iteratorInstance = $DB->iterator("SELECT * FROM fruit limit 0, 1000000;");
0 commit comments