克服Google App Engine上10000个文件限制的方法? [英] Approaches for overcoming 10000 file limit on Google App Engine?

查看:83
本文介绍了克服Google App Engine上10000个文件限制的方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Google App Engine当前每个项目的文件限制为10,000.

Google App Engine currently has a 10,000 file limit per project.

我有几个问题:

  1. 有没有人从Google看到任何迹象表明这种情况会增加?他们为什么有这么小的文件限制?

  1. Has anyone seen any indications from Google that this will be increased? Why do they have such a small file limit?

我的应用有数千张图像.有哪些减少文件数量的选项.我是否必须将图像移到另一个托管服务...还是可以以某种方式将其压缩,以使它们不会全部计入10,000个文件的限制?

My app has thousands of images. What are the options for reducing file count. Do I have to move the images to another hosting service... or can I zip them up somehow so that they don't all count towards the 10,000 file limit?

推荐答案

您可以让您的应用将图像存储在 Google Cloud Storage(GCS),作为应用程序数据,而不是应用程序静态文件,因此它们不会计入该应用程序的1万个文件限制.

You could have your app store the images in Google Cloud Storage (GCS), as app data, not as app static files, so they wouldn't count towards the app's 10k files limit.

实际上,我什至不应该称它们为应用程序数据,因为它们可以是任何文件,甚至与GAE都不相关. GCS可以像其他任何CDS一样为它们提供服务,如以下答案所示: https://stackoverflow.com/a/15969224/4495081

Actually I shouldn't even call them app data, as they can be any files, not even related to GAE. And GCS can serve them like any other CDS, as illustrated in this answer: https://stackoverflow.com/a/15969224/4495081

您可以在其他Google Cloud Platform产品(包括GAE)上找到特定的GCS集成说明,此处.

You can find specific GCS integration notes for other Google Cloud Platform products including GAE here.

这篇关于克服Google App Engine上10000个文件限制的方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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