erickennedy  
            (Ericbkennedy)
           
           
          
              
                December 11, 2010,  4:32am
               
               
          21 
           
         
        
          
 Trejder:
 
Can you be a little bit more specific on about DB operations topic? Can mention some numbers on what percent of DB-related operations in RealSelf.com  are done via ActiveRecord and how many via DAO? Do you see any serious performance degrade / difference between these two methods? Are there any parts of code that are using pure PDO object, leaving all that comes with Yii behind?
 
 
All of our form queries use ActiveRecord.  We use DAO for many of our complex select statements on model views.  It makes sense to use an explicit query with DAO when that query will be run millions of times before a schema change occurs.
BTW, I’m on vacation for the next 2 weeks so expect replies after the 24th.
         
         
           
        
            
            
            
         
         
             
             
          
       
      
        
          
          
            trejder  
            (Tomasz)
           
           
          
              
                December 11, 2010, 10:57pm
               
               
          23 
           
         
        
          
All of our form queries use ActiveRecord.  We use DAO for many of our complex select statements on model views.  It makes sense to use an explicit query with DAO when that query will be run millions of times before a schema change occurs.
BTW, I’m on vacation for the next 2 weeks so expect replies after the 24th.
 
 
Thanks for your answer and happy vacation then.
         
         
        
            
            
            
         
         
             
             
          
       
      
        
          
          
            trejder  
            (Tomasz)
           
           
          
              
                December 14, 2010,  2:36pm
               
               
          24 
           
         
        
          
 qiang:
 
Make sure you turn on schema caching for AR. Otherwise, a lot of time in AR would be spent in retrieving schema information. With proper configuration, AR should lower the performance of DAO/PDO by 50% or less.
 
 
An alternative solution is presented in this Wiki article.
         
         
        
            
            
            
         
         
             
             
          
       
      
        
          
          
            StErMi  
            (Stermi)
           
           
          
              
                December 15, 2010, 11:17am
               
               
          25 
           
         
        
          Can someone do a comparative with also PostgreSQL ?
         
         
        
            
            
            
         
         
             
             
          
       
      
        
          
          
            samdark  
            (Alexander Makarov)
           
           
          
              
                December 15, 2010,  5:14pm
               
               
          26 
           
         
        
          PostgreSQL works just fine. Russia Today’s MeetFrieds runs on it and Yii 1.0.
         
         
        
            
            
            
         
         
             
             
          
       
      
        
          
          
            StErMi  
            (Stermi)
           
           
          
              
                December 15, 2010,  6:42pm
               
               
          27 
           
         
        
          
I know that it’s working fine, I was just wondering if there is a gap between mysql and postgresql
         
         
        
            
            
            
         
         
             
             
          
       
      
        
          
          
            trejder  
            (Tomasz)
           
           
          
              
                December 17, 2010, 10:07am
               
               
          28 
           
         
        
          
StErMi, as far as I’m concern we are not discussing a gap between two different RDBMSes here but the difference (gap) between using an older framework and switching to Yii with using the same  RDBMS. Only this way you can correctly evaluate performance change between frameworks and that’s what this topic started from (though got a bit off-topic by the way! :])
         
         
        
            
            
            
         
         
             
             
          
       
      
        
          
          
            Leric  
            (Leric Zhang)
           
           
          
              
                March 2, 2011,  1:36pm
               
               
          30 
           
         
        
          Yet another proof of the power of Yii
         
         
        
            
            
            
         
         
             
             
          
       
      
        
          
          
            koloale  
            (Koloale)
           
           
          
              
                April 7, 2011,  8:18am
               
               
          31 
           
         
        
          Is RealSelf.com  is open source?
         
         
        
            
            
            
         
         
             
             
          
       
      
        
          
          
            adiasen  
            (Adiasen)
           
           
          
              
                April 9, 2011,  7:00pm
               
               
          33 
           
         
        
          Hello,
may I ask you what the hardware setup for RealSelf.com  is? Is the website running on single server or over multiple servers?
Thank you for your answer!
Cheers
         
         
        
            
            
            
         
         
             
             
          
       
      
        
          
          
            kinetik  
            (Budi)
           
           
          
              
                June 22, 2011,  3:45pm
               
               
          34 
           
         
        
          Wow. Great performance!
Congratulation on your project!
         
         
        
            
            
            
         
         
             
             
          
       
      
        
          
          
            Nihilnovi  
            (Mikael Chojnacki)
           
           
          
              
                February 13, 2012,  1:38pm
               
               
          36 
           
         
        
          Nice to see the speed increase* even without memcache =)
edit*
         
         
        
            
            
            
         
         
             
             
          
       
      
        
          
          
            g0dspeed  
            (G0dspeed)
           
           
          
              
                July 5, 2012,  7:38pm
               
               
          37 
           
         
        
          Lol nice performance. Nothing in comparable to drupal lol 
         
         
        
            
            
            
         
         
             
             
          
       
      
        
          
          
            gear  
            (Garylcng)
           
           
          
              
                September 27, 2012, 11:40pm
               
               
          38 
           
         
        
          Given that the core of Drupal is CMF, what sort of CMS do you use on yii?  Any recommendation?
         
         
        
            
            
            
         
         
             
             
          
       
      
        
        
          Great post Eric.
I’m in the same situation with a client project and it never occured to me that Yii could be an alternative to Drupal before I read your post and blog.
Tx for sharing.
         
         
        
            
            
            
         
         
             
             
          
       
      
        
          
          
            jeapie  
            (Jeapiecompany)
           
           
          
              
                May 20, 2013,  6:11pm
               
               
          40 
           
         
        
          Really nice performance with this load