dousong4777 2010-12-31 08:30
浏览 22
已采纳

我有大约800个单独的YQL查询需要处理,这需要很长时间

Are there tips to queue this or pause each query so that YQL can return the results before moving on to the next query. I am programming this in PHP and each query takes about 4 seconds. I am just using a "while loop" to go through my array of 800 queries.

  • 写回答

2条回答 默认 最新

  • dougui4325 2011-01-09 10:05
    关注

    How are you sending the YQL request in PHP? In a lot of other languages that I have used these CURL-like requests will be synchronous anyways, so why is there the need to pause actively?

    Also in terms of speeding things up, did you look at YQL's query.multi to parallelize queries? Example for YQL console. Try it

    select * from query.multi where queries="show tables;select * from feed where url='http://www.javarants.com/rss'"
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?