开发者

YQL batch queries

I am trying to execute some queries using YQL. To gain some efficiency, I am thinking of executing them in batches. My queries are in a text file, each in one line. My (Java)program currently reads each query from one line an开发者_运维技巧d creates YQL query and executes it. I want this to be done in a batch of 10 or more. I could not find any examples on the web on how to execute this kind. If anybody has done think kind of queries , please do share your experience.


You could use the query.multi table to make 10 (or more) queries at once, each of the queries will return within a results block.

For example:

select * from query.multi where
queries="show tables;select * from feed where url='http://www.javarants.com/rss'"

(try this in the console)

Alternatively it would not take much at all too cook up a custom data table which you can feed in multiple queries at once in whatever format you want to put in, or get out.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜