我有一个大约20GB的大CSV文件,我需要上传到谷歌云,这是一个巨大的文件,不是拆分的。如何快速上传?以下是我所拥有的:
def WriteFile2Cloud(filepath, filename):
global config
global debug
if(debug):
print("Writing to file: "+filename)
session = GetSession()
client = storage.Client(config.GoogleProjectID(), _http=session)
bucket = client.get_bucket(config.GoogleBucketName())
blob = bucket.blob(filename)
file = blob.upload_from_file(filepath+"/"+filename)
有没有办法加快文件上传速度
目前没有回答
相关问题 更多 >
编程相关推荐