Yii Framework Forum: Yii Performance Problem When Using Cformmodel - Yii Framework Forum

Jump to content

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

Yii Performance Problem When Using Cformmodel Rate Topic: -----

#1 User is offline   Stefen Gratz 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 08-October 12

Posted 08 October 2012 - 09:02 PM

Hi everyone!

I am a new here. I've used Yii FW for 2 days and I found that Yii was the best FW I ever used. But I have a problem . When i using Yii to render page or do any actions without connect with database using CFormModel, it's go super fast, about 62ms -> 100 ms . But when i connect to db using CFormModel to get 1 record , only one to display. My website run too slow, cost about 1s. Please help me, everytime connect to db using CFormModel i have that problem again whether one or more records from database.

Sorry for my bad english. Thanks a lot!
0

#2 User is offline   Stefen Gratz 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 08-October 12

Posted 09 October 2012 - 03:27 AM

Thx guys. I solve my problem so easily.<br />
<br />
Just change localhost -&gt; 127.0.0.1 in config/main.php<br />
<br />
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