Code Monkey home page Code Monkey logo

Comments (3)

dominique-pfister avatar dominique-pfister commented on July 19, 2024

Testing shows that the new behaviour is actually slower because it consists of 2 more requests to the Graph API, which seems to outweigh the smaller responses being returned. On average, the new behaviour will cause data-embed to take 8s as opposed to 6s for the old behaviour.

A small optimization where only the values of a range are returned (not all the other information listed above), shows a slight performance gain in the range of 1-2 seconds.

from helix-data-embed.

tripodsan avatar tripodsan commented on July 19, 2024

Testing shows that the new behaviour is actually slower because it consists of 2 more requests to the Graph API, which seems to outweigh the smaller responses being returned.

  • why are there 2 requests more ? isn't it only one more for the column names?
  • can you use $skip and $top instead of the address?
  • when a table is used, the header names can be retrieved.

from helix-data-embed.

dominique-pfister avatar dominique-pfister commented on July 19, 2024

why are there 2 requests more ? isn't it only one more for the column names?

1 request for the used range address, 1 request for the column names, 1 request for the values (which are not adjacent to the column names when offset is not zero), as opposed to 1 request for all values in the used range, which include the header row.

can you use $skip and $top instead of the address?

already tried, has no effect, unfortunately.

when a table is used, the header names can be retrieved.

right, but this would still use one more request

from helix-data-embed.

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.