GithubHelp home page GithubHelp logo

More informative query time about mgconsole HOT 6 CLOSED

jmatak avatar jmatak commented on August 28, 2024
More informative query time

from mgconsole.

Comments (6)

gitbuda avatar gitbuda commented on August 28, 2024

Yes, at the moment mgconsole is just printing out the "wall_time" in the following format:

N rows in set (0.001 sec)

While the underlying client actually has the following info available:

  • cost_estimate
  • parsing_time
  • planning_time
  • query_execution_time

I think the mgconsole should be extended in two ways:

  1. By default, the output should be N rows in set (round trip in 0.001 sec) (to make it clear what is the time about)
  2. Add, e.g., --varbose-query flag where the other stuff would also be printed out

from mgconsole.

gitbuda avatar gitbuda commented on August 28, 2024

There is also another angle, from the client's perspective there are many viable times to present:

  • round trip or time for the results being available
  • time to make data consumable
  • time to consume the data (in this case, printing them out)

from mgconsole.

jmatak avatar jmatak commented on August 28, 2024

That seems like useful information! However, from the benchmarking perspective, there is currently no way to measure performance from client. Adding that in some way would help me as a developer to better understand queries.

from mgconsole.

gitbuda avatar gitbuda commented on August 28, 2024

That seems like useful information! However, from the benchmarking perspective, there is currently no way to measure performance from client. Adding that in some way would help me as a developer to better understand queries.

What exactly would be helpful to measure and print out?

from mgconsole.

jmatak avatar jmatak commented on August 28, 2024

That seems like useful information! However, from the benchmarking perspective, there is currently no way to measure performance from client. Adding that in some way would help me as a developer to better understand queries.

What exactly would be helpful to measure and print out?

The pure query execution time, and planning time. The closest information to this is a PROFILE query that breaks that information by different execution cursors.

from mgconsole.

gitbuda avatar gitbuda commented on August 28, 2024

Done in #36

from mgconsole.

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.