Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

In the find() function what is the use of these constants

hi In the documentation, it does not say anything about TYPE_RESULT_FULL and TYPE_RESULT_PARTIAL usage and effects, Can you tell it to me, thanks



84.5k
Accepted
answer

These constants are used internally to describe what kind of resultset you're working with. TYPE_RESULT_FULL means the full data provided in the resultset was fully fetch into memory, in the other hand TYPE_RESULT_PARTIAL means the results are being obtained using a scrollable cursor, fetching one record at every iteration.



1.1k

Thank you, for example: "HYDRATE_ARRAYS" by $robots[' hydration '] Settings, set up the two constants?

These constants are used internally to describe what kind of resultset you're working with. TYPE_RESULT_FULL means the full data provided in the resultset was fully fetch into memory, in the other hand TYPE_RESULT_PARTIAL means the results are being obtained using a scrollable cursor, fetching one record at every iteration.