Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
Database Lab Engine – instant database clones to boost development
Database Lab Engine – instant database clones to boost development
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 64
    • Issues 64
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 3
    • Merge Requests 3
  • Requirements
    • Requirements
    • List
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Postgres.ai
  • Database Lab Engine – instant database clones to boost developmentDatabase Lab Engine – instant database clones to boost development
  • Issues
  • #212

Closed
Open
Opened Dec 07, 2020 by Nikolay Samokhvalov@NikolayS🚀Owner2 of 5 tasks completed2/5 tasks

Production 1-query timing estimator (R&D phase)

Goal

As a user of DLE and/or Joe bot, I want to see a timing estimate for production.

Why: Depending on configuration, resources, and state of caches, DLE can execute queries significantly longer than production Postgres.

TODO / How to implement

  • we need to provide 2 numbers always, for cold and hot cache state. (Display as a range: Production timing estimate: XX-YY ms)
  • exec (DDL): count buffers read and written (either using /proc/... or pg_stat_database), and based on those numbers and knowledge about prod, provide ...
  • explain: ...
  • how do we "learn" how production behaves? (calibration)
  • should we provide "error" in addition to estimate?

Acceptance criteria

  • Joe users see production timing estimate for both explain and exec. Questions to finalize:
  • UI: wording, put it into the summary
  • Are we going to show wait_even_type histogram right now? For every Joe's response?
  • (implementation) which event types do we need to involve in the formula?
  • DOCUMENTATION docs#42 (closed)
  • link to "how it works" (users should be able to find it easily: look at Summary -> think "how" -> go read the doc)
  • DLE users – ??? (option: CI observer also provides estimates for ???)
Edited Jan 19, 2021 by Artyom Kartasov
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: postgres-ai/database-lab#212