CoreBOSBB
fetch_array vs FetchRow - Printable Version

+- CoreBOSBB (https://discussions.corebos.org)
+-- Forum: Development (https://discussions.corebos.org/forumdisplay.php?fid=18)
+--- Forum: coreBOS Development (https://discussions.corebos.org/forumdisplay.php?fid=4)
+--- Thread: fetch_array vs FetchRow (/showthread.php?tid=1265)



fetch_array vs FetchRow - Guido1982 - 09-17-2018

I noticed something in the August blog, a speed comparison between fetch_array and FetchRow. Joe, could you elaborate a little on this? What is the difference between the two, in speed, usage and results?


RE: fetch_array vs FetchRow - joebordes - 10-23-2018

This was brought to my attention by a coreBOS user in the US who has made a lot of speed optimizations. From what I can see the optimization is that FetchRow does not return both numeric and column based results and, the real important one, is that FetchRow does not HTML encode the results, they are returned as they are in the database, this saves some considerable time, which in many cases you waste again by having to HTML decode the values.

The functionality is equivalent so it is an issue of knowing when you should use one option over the other.


RE: fetch_array vs FetchRow - Guido1982 - 10-23-2018

Ah, so FetchRow should be used when handling large datasets then.