We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

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



98.9k
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.7k

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.