A faster way to get an id-indexed result from database? |
I would use the function getUnbufferedRow('array') instead. As of right know you are getting an extra foreach. I'm not sure how to extend the Database class.
You can however create your own function that you can create in a library or BaseController / Base Model. PHP Code: // In a controller or model class |
Messages In This Thread |
A faster way to get an id-indexed result from database? - by Leo - 04-22-2020, 08:41 AM
RE: A faster way to get an id-indexed result from database? - by John_Betong - 04-22-2020, 09:09 AM
RE: A faster way to get an id-indexed result from database? - by jreklund - 04-22-2020, 10:01 AM
RE: A faster way to get an id-indexed result from database? - by Leo - 04-22-2020, 10:25 AM
RE: A faster way to get an id-indexed result from database? - by jreklund - 04-22-2020, 10:51 AM
RE: A faster way to get an id-indexed result from database? - by Leo - 04-22-2020, 11:33 AM
RE: A faster way to get an id-indexed result from database? - by korgoth - 04-23-2020, 06:28 AM
|