Yii Framework Forum: a question about AR - Yii Framework Forum

Jump to content

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

a question about AR Rate Topic: -----

#1 User is offline   lenye 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 21
  • Joined: 04-February 10

Posted 01 June 2010 - 07:49 AM

Hi,i'm a newbie,i wanna ask a question about efficiency of AR.
When i use model()->find() to have a query,the result returns a lot of information that maybe i don't need,for example,table information. i think it will reduce the efficiency of AR.
how can i get the result which only have the query result that i need!
0

#2 User is offline   Mike 

  • Elite Member
  • PipPipPipPipPip
  • Yii
  • Group: Members
  • Posts: 3,013
  • Joined: 06-October 08
  • Location:Upper Palatinate

Posted 01 June 2010 - 02:39 PM

Configure a cache component and schemaCachingDuration in your connection.
0

#3 User is offline   lenye 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 21
  • Joined: 04-February 10

Posted 01 June 2010 - 07:40 PM

View PostMike, on 01 June 2010 - 02:39 PM, said:

Configure a cache component and schemaCachingDuration in your connection.

Thanks for your tips!
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