Skip to content

feat: add estimated time for query execution - #1158

Merged
czgu merged 2 commits into
pinterest:masterfrom
czgu:progress2
Feb 10, 2023
Merged

czgu merged 2 commits into
pinterest:masterfrom
czgu:progress2

Conversation

@czgu

@czgu czgu commented Feb 10, 2023

Copy link
Copy Markdown
Collaborator

image

This is just a linear interpolation on how long the query would finish

@czgu
czgu marked this pull request as ready for review February 10, 2023 04:23
moment.duration(secondsRemainToComplete, 'seconds')
)}
.
</div>

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would prefer to format the string first to avoid the weird {' '}, e.g.

message = `Estimated to be completed in ${formatDuration(moment.duration(secondsRemainToComplete, 'seconds'))}.`

<div>{message}</div>

</div>
{getMetaInfoDOM()}
{progressBar}
{estimatedTimeDOM}

@jczhong84 jczhong84 Feb 10, 2023 •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how about display the estimation in the same line with progress bar, after the %, like
[>>>>.........] 25% (Estimated to be completed in 14s)

or just

[>>>>.........] 25% ( 14s remaining)

@czgu
czgu merged commit 7a25679 into pinterest:master Feb 10, 2023
@czgu
czgu deleted the progress2 branch February 10, 2023 19:17
czgu added a commit to czgu/querybook that referenced this pull request Feb 15, 2023
czgu added a commit that referenced this pull request Feb 15, 2023
rohan-sh1 pushed a commit to CAI-TECHNOLOGIES/cai-ext-db-explorer that referenced this pull request Apr 11, 2023
* feat: add estimated time for query execution

* resolved comments
rohan-sh1 pushed a commit to CAI-TECHNOLOGIES/cai-ext-db-explorer that referenced this pull request Apr 11, 2023
aidenprice pushed a commit to arrowtail-precision/querybook that referenced this pull request Jan 3, 2024
* feat: add estimated time for query execution

* resolved comments
aidenprice pushed a commit to arrowtail-precision/querybook that referenced this pull request Jan 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants