Coder Social home page Coder Social logo

Comments (5)

tananaev avatar tananaev commented on September 23, 2024 1

The problem is calling pretty expensive APIs when they don't need to be called. There are 2 API calls for each field. Most of the time people only need to change one of the fields. It doesn't make sense to call all of them preemptively.

Combining everything into one call doesn't solve any problem. The bottleneck is database requests, not number of API calls.

from traccar-web.

tananaev avatar tananaev commented on September 23, 2024

This is expected to avoid making large number of API calls too early.

from traccar-web.

TheZoker avatar TheZoker commented on September 23, 2024

IMHO this is very confusing for the user, since he never knows which fields have values and which do not.

Maybe make delayed calls?

from traccar-web.

tananaev avatar tananaev commented on September 23, 2024

How would delayed calls solve the problem?

from traccar-web.

TheZoker avatar TheZoker commented on September 23, 2024

I'm not sure, but I also don't think I understand the problem. Other applications can handle this, this is the only app, that does not show which options are selected by the user.

I though that with this:

large number of API calls too early

you mean the API should not be jammed with a lot of calls early. If you delay them, they are not called early

Maybe a new API endpoint, which returns all the data within one call could solve this.
Then there would be only one call instead of many.
But I'm not expert on this topic, just a confused user.

from traccar-web.

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.