0

我想获取我的信息流中的所有帖子,而不是来自页面的帖子。我努力了:

SELECT post_id, actor_id, target_id, message, comment_info, likes FROM stream WHERE filter_key in (SELECT filter_key FROM stream_filter WHERE uid = me() AND type = 'newsfeed') AND NOT (actor_id IN (SELECT id FROM object_url WHERE type='Page'))

但是,您不能在 Where 子句中使用 type='Page',因为它不可索引。

有任何想法吗?

4

1 回答 1

1

我看过了,以下似乎对我有用:

    SELECT post_id, actor_id, target_id, message, comment_info, likes FROM stream WHERE filter_key in (SELECT filter_key FROM stream_filter WHERE uid = me() AND type = 'newsfeed') AND NOT (actor_id IN (SELECT target_id FROM connection WHERE target_type='Page' AND source_id = me()))

这是做你想做的吗?

于 2013-04-21T20:34:39.250 回答