Giter Site home page Giter Site logo

Comments (6)

tseaver avatar tseaver commented on June 16, 2024

As I noted on your PR, perhaps it would make sense to allow sorting objects across buckets. @frankyn, WDYT?

from python-storage.

frankyn avatar frankyn commented on June 16, 2024

Hi @bboe,

Apologies on the delay. How many objects do you have in your bucket? I'd prefer we not support this in the GCS library because list_blobs() may be called on a bucket with millions of objects. I think this is better suited in external project code rather than in the Python library.

I'm open to discussing this more, but want to be careful with what the library supports long-term.

from python-storage.

bboe avatar bboe commented on June 16, 2024

@frankyn thanks for the response. Yes, sorting millions of objects wouldn't be ideal.

Would it be possible to update the documentation to mention that list_blobs is guaranteed to return items sorted by key (assuming that's actually true)?

from python-storage.

frankyn avatar frankyn commented on June 16, 2024

Reaching out to the backend service teams and will get back to you.

As long as I've used GCS, objects are listed in lexicographical order, but want to confirm because it's a strong statement and want to be careful.

from python-storage.

frankyn avatar frankyn commented on June 16, 2024

Hi @bboe, confirmed with backend team that this is true and not documented appropriately.

This is being resolved by Technical Writers internally and closing this issue.
Thanks for your patience @bboe!

from python-storage.

bboe avatar bboe commented on June 16, 2024

Thanks for following up @frankyn. I appreciate it.

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.