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'"
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报