->free()
Описание
DataObjects stores result set's as a private global variable, normally this is free'ed after you have run through the results, or at the end of the request. However in some situations, like running queries directly, inserting data, some data is unnecessarly cached.
Using this method will Free All results sets! (so be carefull) it may break running fetch() loops..
You normally only need to use this if you are doing a large number of inserts or queries.
Пример
Пример 35-1. Freeing resources in a loop
|
Пред. | Начало | След. |
->query() | Уровень выше | ->selectAdd() |