Closed (fixed)
Project:
FeedAPI
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
10 Mar 2008 at 20:33 UTC
Updated:
27 Mar 2008 at 19:22 UTC
Jump to comment: Most recent file
We should _never_ have queries like this one:
$result = db_query("SELECT n.nid FROM {node} n JOIN {feedapi_node_item_feed} ff ON ff.feed_item_nid = n.nid WHERE ff.feed_nid = %d ORDER BY n.created DESC", $feed->nid);
In a large database, this would fetch all feed item nodes there are only to promote/demote some of them. I don't know whether or how we could fix this. If this is not fixable in a quick way, I would argue to drop this feature from FeedAPI.
IMO, this feature should be implemented with workflow or similar modules.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | promote.patch | 1.46 KB | aron novak |
Comments
Comment #1
aron novakOf course, this can be implemented to be faster. Here is a patch for Drupal 6, but i assume this patch can be applied without change to Drupal 5. It only queries the currently promoted and the to-be-promoted nids.
Comment #2
aron novakComment #3
aron novakA more efficient version is committed (never query all of the nids). Maybe it'd be better to drop the feature. Decide about it later.
Comment #4
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.