On Fri, Nov 22, 2013 at 10:23 AM, D X <[email protected]> wrote: > 1. Is blobstore getting deprecated? From some discussions online it sounds > like blobstore is getting deprecated in favor of GCS. However, from the > docs, it looks like it's only the file-like API that is getting deprecated. > If I'm just uploading files and serving them, can I keep going using > Blobstore? > >
As of now, the only component being deprecated is the blobstore file writing support ( https://developers.google.com/appengine/docs/python/blobstore/#Python_Writing_files_to_the_Blobstore ) and the Files API. The Blobstore service itself is NOT deprecated, and so you can continue to upload/download files. The reason developers are moving to GCS is that it's much more flexible and future-proof than the blobstore. GCS offers the ability to write to files, read, upload, download, manage permissions, versioning, etc. Even if you only need to upload and serve files, it's a good idea to plan a migration path to GCS. On Fri, Nov 22, 2013 at 10:23 AM, D X <[email protected]> wrote: > 2. Are others getting tons of empty files in Blobstore? In order for > Blobstore to receive a file, you need to call blobstoreService. > createUploadUrl(). However, an end user may not necessarily upload a > file. My blobstore is now flooded with empty files. Is there a standard > way to avoid these empty files, or a standard way to clean them out? It > looks like I can clean them out via the GAE Admin, but I can only delete 30 > at a time and I have hundreds. * I'm not yet clear if these files were > created just by calling createUploadUrl(). Because the file is part of a > form, it's possbile they were created when the upload url was actually used > for a form upload with no included file. As another note, I'm not seeing > empty files on my dev_appserver, just on production. > No, I haven't seen that behavior from the blobstore. But if you need to automate the process of clearing out blobs, you can use BlobInfoFactory ( https://developers.google.com/appengine/docs/java/javadoc/com/google/appengine/api/blobstore/BlobInfoFactory ) to iterate through all blobs, inspect the size of the blob using BlobInfo, and delete the blob if it's empty. ----------------- -Vinny P Technology & Media Advisor Chicago, IL App Engine Code Samples: http://www.learntogoogleit.com -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/groups/opt_out.
