搜索文件(密钥)的S3存储桶所需时间较长密钥、所需、较长、文件

2023-09-11 09:54:04 作者:重蹈覆辙

我有一个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.