Changeset 1673 for trunk/gregarius/cls

Show
Ignore:
Timestamp:
01/15/07 09:21:41 (21 months ago)
Author:
mbonetti
Message:

optimization: the join on the ratings table would take quite some time. Commented it out as we're not using ratings atm

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/gregarius/cls/items.php

    r1668 r1673  
    288288            ."i.url, i.enclosure, i.author, i.description, c.icon, " 
    289289            ." unix_timestamp(ifnull(i.pubdate,i.added)) as ts, " 
    290             ." i.pubdate is not null as ispubdate, i.id, r.rating  "; 
     290            ." i.pubdate is not null as ispubdate, i.id " 
     291            ." , null " 
     292            //.", r.rating  " 
     293            ; 
    291294        $this -> _sqlActualFrom =   getTable("item") ." i " 
    292             ." left join " . getTable("rating") ." r on (i.id = r.iid) " 
     295            //." left join " . getTable("rating") ." r on (i.id = r.iid) " 
    293296            ." inner join " . getTable("channels")." c on (c.id = i.cid) " 
    294297            ." inner join " . getTable("folders") ." f on (f.id = c.parent) ";