Skip to content

Conversation

@davies
Copy link
Contributor

@davies davies commented Apr 11, 2016

What changes were proposed in this pull request?

This PR improve the performance of SQL UI by:

  1. remove the details column in all executions page (the first page in SQL tab). We can check the details by enter the execution page.
  2. break-all is super slow in Chrome recently, so switch to break-word.
  3. Using "display: none" to hide a block.
  4. using one js closure for for all the executions, not one for each.
  5. remove the height limitation of details, don't need to scroll it in the tiny window.

How was this patch tested?

Exists tests.

ui

@davies
Copy link
Contributor Author

davies commented Apr 11, 2016

cc @zsxwing

<script>
function clickDetail(details) {{
details.parentNode.querySelector('.stage-details').classList.toggle('collapsed')
}}
Copy link
Contributor

Choose a reason for hiding this comment

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

do you need double }} here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't know, copied from ExecutionPage

Copy link
Member

Choose a reason for hiding this comment

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

It's necessary to escape { in xml.

Copy link
Member

Choose a reason for hiding this comment

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

(Necessary when writing XML in Scala code right? it's not reserved in XML)

@andrewor14
Copy link
Contributor

Looks good!

@zsxwing
Copy link
Member

zsxwing commented Apr 11, 2016

LGTM

@SparkQA
Copy link

SparkQA commented Apr 12, 2016

Test build #55550 has finished for PR 12311 at commit b25701f.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@sarutak
Copy link
Member

sarutak commented Apr 12, 2016

retest this please.

@SparkQA
Copy link

SparkQA commented Apr 12, 2016

Test build #55575 has finished for PR 12311 at commit b25701f.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Apr 12, 2016

Test build #2776 has finished for PR 12311 at commit b25701f.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Apr 12, 2016

Test build #2778 has finished for PR 12311 at commit b25701f.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@davies
Copy link
Contributor Author

davies commented Apr 12, 2016

@zsxwing Could you help me to fix the streaming test suite? It seems related to this PR.

@SparkQA
Copy link

SparkQA commented Apr 12, 2016

Test build #55622 has finished for PR 12311 at commit a8f209a.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@zsxwing
Copy link
Member

zsxwing commented Apr 12, 2016

retest this please

@SparkQA
Copy link

SparkQA commented Apr 12, 2016

Test build #55638 has finished for PR 12311 at commit a8f209a.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@davies
Copy link
Contributor Author

davies commented Apr 12, 2016

Merging this into master, thanks!

@asfgit asfgit closed this in 1ef5f8c Apr 12, 2016
asfgit pushed a commit that referenced this pull request Apr 12, 2016
## What changes were proposed in this pull request?

This PR improve the performance of SQL UI by:

1) remove the details column in all executions page (the first page in SQL tab). We can check the details by enter the execution page.
2) break-all is super slow in Chrome recently, so switch to break-word.
3) Using "display: none" to hide a block.
4) using one js closure for  for all the executions, not one for each.
5) remove the height limitation of details, don't need to scroll it in the tiny window.

## How was this patch tested?

Exists tests.

![ui](https://cloud.githubusercontent.com/assets/40902/14445712/68d7b258-0004-11e6-9b48-5d329b05d165.png)

Author: Davies Liu <[email protected]>

Closes #12311 from davies/ui_perf.
zzcclp pushed a commit to zzcclp/spark that referenced this pull request Apr 13, 2016
## What changes were proposed in this pull request?

This PR improve the performance of SQL UI by:

1) remove the details column in all executions page (the first page in SQL tab). We can check the details by enter the execution page.
2) break-all is super slow in Chrome recently, so switch to break-word.
3) Using "display: none" to hide a block.
4) using one js closure for  for all the executions, not one for each.
5) remove the height limitation of details, don't need to scroll it in the tiny window.

## How was this patch tested?

Exists tests.

![ui](https://cloud.githubusercontent.com/assets/40902/14445712/68d7b258-0004-11e6-9b48-5d329b05d165.png)

Author: Davies Liu <[email protected]>

Closes apache#12311 from davies/ui_perf.

(cherry picked from commit 582ed8a)
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.

6 participants