question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

explain cost check

See original GitHub issue

Would be good to have ability to setup upper bound of explain cost. If explain cost more than this upper bound for particular query, error occured about heavy sql. Explain cost can be set in tsconfig.json for tsserver and as cli flag for cli tool.

Example:

Limit  (cost=0.00..50000.55 rows=1000000 width=341) (actual time=0.003..0.003 rows=0 loops=1)
  ->  Seq Scan on car  (cost=0.00..12.20 rows=220 width=341) (actual time=0.002..0.002 rows=0 loops=1)
Planning Time: 0.058 ms
Execution Time: 0.015 ms

50000.55 so heavy, max upper bound is 10000

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
darkycommented, Apr 18, 2021

#31 Will be implemented sometime

0reactions
rattrayalexcommented, Apr 18, 2021

By the way, this is a very exciting tool, and it’s very cool that you are considering cost right at the start.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cost check
Determine the costs involved prior to your market entry. This way you are on the safe side when it comes to calculating your...
Read more >
What Is Cost Estimation in Project Management?
Cost estimation accounts for each element required for the project—from materials to labor—and calculates a total amount that determines a project's budget.
Read more >
Cost Control: How Businesses Use It to Increase Profits
Cost control is the practice of identifying and reducing business expenses to increase profits, and it starts with the budgeting process.
Read more >
Cost Estimation In Project Management: How to ...
Need help with cost estimation? Here are some tips so you can accurately estimate costs for a reliable budget and a successful project....
Read more >
What Is The Cost In PostgreSQL EXPLAIN Query
The first numbers you see after cost= are known as the “startup cost”. This is an estimate of how long it will take...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found