I'm trying to speed up a transfer of images from our web server to S3. Some of the images have been uploaded already, but the process was interrupted. We've written new scripts to upload images if they don't already exist in S3, however the if_object_exists() method seems to be quite slow (1-2 seconds). We're thinking of just attempting to upload every image, but make S3 fail if the object exists (hoping this will be faster). Does anyone know if there's a "bucket policy" or some other setting we can use to prevent overwrites?
closed as off topic by thinice, Scott Pack, mdpc, Chris S♦ Nov 20 '12 at 15:12
Questions on Server Fault are expected to relate to professional server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.