Yii Framework Forum: Memory limits - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Memory limits Rate Topic: -----

#1 User is offline   ORey 

  • Elite Member
  • PipPipPipPipPip
  • Yii
  • Group: Members
  • Posts: 1,694
  • Joined: 20-April 09
  • Location:Moscow, Russia

Posted 16 December 2009 - 04:53 PM

Hi all.
I tried to findAll() large number of records and got

Quote

Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 196608 bytes) in .../framework/db/ar/CActiveRecord.php on line 1530


I need them all for export to csv file.
Is there a good way to fetch all the data sequentially, part by part?
I can use loop and limit/offset, but first I wish to know if there is any other 'built-in' solution.
God is real unless declared as integer
0

#2 User is offline   Y!! 

  • Advanced Member
  • Yii
  • Group: Yii Dev Team
  • Posts: 978
  • Joined: 18-June 09

Posted 17 December 2009 - 02:28 AM

Try disabling YII_DEBUG. Additionally you may look here, or if you can't solve the problem you may use DAO for now.
0

#3 User is offline   ORey 

  • Elite Member
  • PipPipPipPipPip
  • Yii
  • Group: Members
  • Posts: 1,694
  • Joined: 20-April 09
  • Location:Moscow, Russia

Posted 17 December 2009 - 06:28 AM

Ok, thanks.
God is real unless declared as integer
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users