Giter Site home page Giter Site logo

Merge `versions` and `assets`? about api HOT 5 CLOSED

jsdelivr avatar jsdelivr commented on May 24, 2024
Merge `versions` and `assets`?

from api.

Comments (5)

tomByrer avatar tomByrer commented on May 24, 2024

No; I cannot think of a use-case to need versions without the assets listing, aside from finding a current version, but we have lastversion already.
Thanks for asking!

from api.

tomByrer avatar tomByrer commented on May 24, 2024

There is 1 caveat: could be grabbing 100s of lines of JSON just to get a versions listing if it happens to be needed. (Times like this makes me wish I wasn't the only one replying to your ideas :)

from api.

bebraw avatar bebraw commented on May 24, 2024

Yeah, it's true assets can come with a big overhead. I guess the question here is, is it worth the simplification? We can keep the API as is. It's easy enough to filter out redundant data in the query if needed so the duplication doesn't hurt that much.

from api.

tomByrer avatar tomByrer commented on May 24, 2024

Maybe I'm stuck in my old ways when I had to ask the DB sysadmin to make smaller queries to not to overwhelm my Excel spreadsheet on a Pentium II? I could be wrong in envisioning the dataset growing 30x in the next 1-2 years....

Is it better to do as you wish now, & if someone needs a sub-set query latter, then that can be (re-)added? I'm personally indifferent; I'm just looking at worse-case scenarios.

from api.

bebraw avatar bebraw commented on May 24, 2024

Let's skip the merge. Even though there is some redundancy it doesn't hurt given you can filter out data you want and this way you won't be getting any extra if you want just versions.

from api.

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.