주제: RSS 리더에서 피드 업데이트 할때
RSS리더에서 모든 피드 업데이트를 클릭하면 blog/owner/reader/update/index.php 를 호출합니다.
그 내용중에:
$feeds = fetchQueryAll("SELECT f.* FROM {$database['prefix']}Feeds f, {$database['prefix']}FeedGroups g, {$database['prefix']}FeedGroupRelations gr WHERE g.owner = $owner AND gr.feed = f.id AND gr.groupId = g.id ORDER BY f.title");
이 구문을 통해 업데이트할 피드의 목록을 얻어오는데요, 테스트 해 본 결과로는 자신의 피드목록만을 가져오는게 아니라 전체 사용자의 피드 리스트를 가져와버리더군요. 때문에 불필요하게 업데이트 속도가 느려지는 현상이 있었습니다. 이것을 아래와 같이 바꿔주면 정상적으로 동작합니다.
$feeds = fetchQueryAll("SELECT DISTINCT f.* FROM {$database['prefix']}Feeds f, {$database['prefix']}FeedGroups g, {$database['prefix']}FeedGroupRelations gr WHERE gr.owner = '$owner' AND gr.feed = f.id AND gr.groupId = g.id ORDER BY f.title");
laziel (2006-05-09 11:00:57)에 의해 마지막으로 수정