YQL批量查询
我正在尝试使用 YQL 执行一些查询。为了提高效率,我正在考虑分批执行它们。我的查询位于一个文本文件中,每个查询都在一行中。我的(Java)程序当前从一行读取每个查询并创建 YQL 查询并执行它。我希望批量完成 10 个或更多。我在网上找不到任何有关如何执行此类操作的示例。如果有人有过这样的疑问,请分享您的经验。
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 and 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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用
query.multi
表一次进行 10 个(或更多)查询,每个查询都将在results
块中返回。例如:
(在控制台中尝试此操作)
或者,它不会还可以编写一个自定义数据表,您可以以您想要输入或输出的任何格式一次输入多个查询。
You could use the
query.multi
table to make 10 (or more) queries at once, each of the queries will return within aresults
block.For example:
(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.