我有一个网络应用程序,它运行在一个免费的、缓慢的网络服务器上。我正在尝试弄清楚如何在我的应用程序获取数据时向用户显示“您的请求正在等待”页面。我的应用程序是一个 Facebook 应用程序,运行图形 API。
图形 API 真的很慢(10 秒,当从用户的提要中获取 300 个帖子时),当然解析也需要很长时间。这是我的应用程序中的瓶颈,我不确定如何解决它(如果这只是 facebook 的错或我的错)。我一直在研究 fql,但显然它与图形 API 相同或更慢(因为它是图形 API)
最佳答案
The graph API is really slow (10 seconds, when getting 300 posts from a user's feed)
I'm filtering the 30, 000 rows of news feed data to only show statuses. [from comments]
现在正确的数量级是多少 - 我们是在谈论实际上一次阅读数百或 10,000 个帖子?
I've been looking into fql but apparently it's the same as or slower than the graph API
你没有仔细看...... FQL 为你提供了过滤 stream
table 的能力通过 type
的帖子 – … WHERE type = '46'
只会给你状态更新。
关于php - 队列系统php,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11873667/