FQL多查询没有返回所有内容

时间:2012-03-09 17:16:07

标签: facebook node.js facebook-fql

我正在使用FQL进行多查询,实际上我有3个查询。 第三个是我最感兴趣的那个,但是Facebook首先返回先前查询的结果,这意味着我需要处理更多的开销,并且有更多的时间来流式传输结果。有没有办法限制Facebook只发送第三个查询的结果集?

JSONqueries["query1"] = encodeURIComponent('SELECT uid1 FROM friend WHERE uid2 = me()');
JSONqueries["query2"] = encodeURIComponent('SELECT eid FROM event_member WHERE uid IN (SELECT uid1 FROM #query1)');
JSONqueries["query3"] = encodeURIComponent('SELECT eid, start_time, end_time, update_time, location, venue FROM event WHERE eid IN (SELECT eid FROM #query2) and privacy=\'OPEN\'');

1 个答案:

答案 0 :(得分:2)

你在这里。但它仍然太复杂,因此非常慢。

SELECT eid,start_time,end_time,update_time,location,venue FROM event WHERE eid IN(SELECT eid FROM event_member WHERE uid IN(SELECT uid1 FROM friend WHERE uid2 = me()))和privacy =“OPEN”