Performance loss large Database |
[eluser]ivantcholakov[/eluser]
Code: foreach($sql->result_array() as $tour) { This loads all the records within the memory, it is OK for smaller recordsets. In CI3-dev there is a method unbuffered_row(), see http://ci3docs.cibonfire.com/database/results.html I think, it cycles the returned recordset directly. Code: $query = $this->db->query("YOUR QUERY"); |
Messages In This Thread |
Performance loss large Database - by El Forum - 10-19-2014, 08:23 AM
Performance loss large Database - by El Forum - 10-19-2014, 11:25 AM
Performance loss large Database - by El Forum - 10-19-2014, 11:26 AM
Performance loss large Database - by El Forum - 10-19-2014, 02:52 PM
Performance loss large Database - by El Forum - 10-19-2014, 05:00 PM
Performance loss large Database - by El Forum - 10-20-2014, 12:55 AM
Performance loss large Database - by El Forum - 10-20-2014, 05:16 AM
|