Skip to content

Commit

Permalink
Small grammar fix (laravel#6946)
Browse files Browse the repository at this point in the history
  • Loading branch information
JosephSilber authored Mar 25, 2021
1 parent 2ba2ffc commit 90175c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eloquent.md
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ foreach ($users as $user) {
}
```

Although the `cursor` method uses far less memory than a regular query (by only holding a single Eloquent model in memory at a time), it will still eventually run out of memory. This is [due to PHP's PDO driver internally caching all raw query results in its buffer](https://www.php.net/manual/en/mysqlinfo.concepts.buffering.php). If you're dealing with an very large number of Eloquent records, consider using [the `lazy` method](#streaming-results-lazily) instead.
Although the `cursor` method uses far less memory than a regular query (by only holding a single Eloquent model in memory at a time), it will still eventually run out of memory. This is [due to PHP's PDO driver internally caching all raw query results in its buffer](https://www.php.net/manual/en/mysqlinfo.concepts.buffering.php). If you're dealing with a very large number of Eloquent records, consider using [the `lazy` method](#streaming-results-lazily) instead.

<a name="advanced-subqueries"></a>
### Advanced Subqueries
Expand Down

0 comments on commit 90175c5

Please sign in to comment.