Giter Site home page Giter Site logo

Comments (2)

emar-kar avatar emar-kar commented on June 20, 2024

@VelizarVESSELINOV Good day, sir. I was trying to reproduce the conditions of the described issue and that is why I would like to clarify some questions:

  • slow_create_blobs(blobs) function is using upload_from_file or upload_from_string method? Is it possible to demonstrate it more specifically for the correct reproduction?
  • Correct me if I'm wrong, but you are trying to create blobs with the same names as in the original list which was marked for deletion?

As I can see through the API structure when you are using the delete_blobs method it is just sending the delete request per each blob and it is not returning anything. So we need to find out will a suitable solution affects the internal server behavior. I'll appreciate your help in resolving this situation and improvement of the user experience, thanks.

from python-storage.

IlyaFaer avatar IlyaFaer commented on June 20, 2024

@VelizarVESSELINOV, code snippet in this issue doesn't give much of info, but I think, you're using Bucket.delete_blobs() method. If so, it doesn't seem that "wait" option is needed. According to Storage docs, object deletion is strong consistent. That means, if you called objects.delete method and it returned empty result, than object is already deleted from Storage (see the method docs). In other words, you don't need a "wait" option, as delete_blobs() will return only when all specified blobs will be truly deleted. Thus, it's already waiting.

Closing this issue. Feel free to reopen, if you have any concerns/propositions.

from python-storage.

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.