Giter Site home page Giter Site logo

Comments (3)

klauspost avatar klauspost commented on August 16, 2024

Yes. What part of the documentation is unclear?

	// ConcurrentStreamParts will create NumThreads buffers of PartSize bytes,
	// fill them serially and upload them in parallel.

from minio-go.

wangs70 avatar wangs70 commented on August 16, 2024

Thanks for your reply. we use it as comments, code as below, and i passed the file size to the function PutObject, but the function “putObjectMultipartStreamParallel” did not use this size and instead used '-1'. I am not sure if it cause the large memory usage. and how to use it.

putopt := minio.PutObjectOptions{
ConcurrentStreamParts: true,
NumThreads: uint(base.S3MinioDownloadConcurrency),
}

// add mime type
mime := CheckMimeType(filename)
if mime != "" {
putopt.ContentType = mime
}

	info, err := client.PutObject(context.Background(), bucket, path, reader, size, putopt)

from minio-go.

wangs70 avatar wangs70 commented on August 16, 2024

why the function “https://github.com/minio/minio-go/blob/6c2c69f9e8f50b2f65a337ec5e98044e9d558e79/api-put-object-streaming.go#L478” use '-1' as file size not real file size? @klauspost

from minio-go.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.