搜索文件(密钥)的S3存储桶所需时间较长 [英] Search files(key) in s3 bucket takes longer time

查看:163
本文介绍了搜索文件(密钥)的S3存储桶所需时间较长的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个S3 bucket.When我列出所有的文件,它需要10分钟10000个文件。我想实现使用博托(Python接口AWS)的搜索根据用户输入文件的搜索模块。有没有一种方法,我可以搜索特定的文件,用更少的时间?

I have 10000 files in a s3 bucket.When I list all the files it takes 10 minutes. I want to implement a search module using BOTO (Python interface to AWS) which searches files based on user input. Is there a way I can search specific files with less time?

推荐答案

AFAIK最好的你能做的就是筛选基于文件preFIX使用的 preFIX 命名参数

AFAIK the best you can do is filter the results based on a file prefix using the prefix named parameter.

这篇关于搜索文件(密钥)的S3存储桶所需时间较长的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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