S3 Select可以搜索多个对象吗? [英] Can S3 Select search multiple objects?

查看:159
本文介绍了S3 Select可以搜索多个对象吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在测试 S3 Select ,我从示例中了解到,您可以将单个对象(CSV或JSON)视为数据存储.

I'm testing out S3 Select and as far as I understand from the examples, you can treat a single object (CSV or JSON) as a data store.

我希望每个S3对象只有一个JSON文档,并将整个存储桶作为数据库"进行搜索.我将每个文件"另存为<ID>.json,每个文件都有具有相同架构的JSON文档.

I wanted to have a single JSON document per S3 object and search the entire bucket as a 'database'. I'm saving each 'file' as <ID>.json and each file has JSON documents with the same schema.

是否可以在单个调用中搜索多个对象?即找到所有JSON文档where customerId = 123?

Is it possible to search multiple objects in a single call? i.e. Find all JSON documents where customerId = 123 ?

推荐答案

It appears that Amazon S3 Select operates on only one object.

您可以使用 Amazon Athena 跨路径运行查询,该查询将包括该路径中的所有文件.它还支持分区.

You can use Amazon Athena to run queries across paths, which will include all files within that path. It also supports partitioning.

这篇关于S3 Select可以搜索多个对象吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆