yugabyte / yugabyte-db

YugabyteDB - the cloud native distributed SQL database for mission-critical applications.
https://www.yugabyte.com
Other
8.99k stars 1.07k forks source link

[YSQL] [Parallel Query] Few Orderby microbenchmarks regressed by 35-58% with the feature enabled #21669

Open shantanugupta-yb opened 7 months ago

shantanugupta-yb commented 7 months ago

Jira Link: DB-10559

Description

Description Comparison is between:

Report: https://perf.dev.yugabyte.com/report/view/W3sibmFtZSI6Ik9yZGVyYnkgZGVmYXVsdCArIGFuYWx5c2UiLCJ0ZXN0X2lkIjoiNTAyNzUwMiIsImlzQmFzZWxpbmUiOnRydWV9LHsibmFtZSI6Ik9yZGVyYnkgcGFyYWxsZWwgKyBhbmFseXNlIiwidGVzdF9pZCI6IjUwMjc2MDIiLCJpc0Jhc2VsaW5lIjpmYWxzZX0seyJuYW1lIjoiT3JkZXJieSBkZWZhdWx0IiwidGVzdF9pZCI6IjQ5ODYyMDIiLCJpc0Jhc2VsaW5lIjpmYWxzZX1d#report-table

Orderby microbenchmarks which have regressed beyond 35-58%

image

Issue Type

kind/bug

Warning: Please confirm that this issue does not contain any sensitive information

rthallamko3 commented 7 months ago

@shantanugupta-yb , Can you get the baseline with CBO gflag + analyze and post the comparison?

rthallamko3 commented 7 months ago

Orderby: Report

rthallamko3 commented 7 months ago

PG did not use parallelism, but YB used parallelism. YB with parallelism is slightly slower than without parallelism.

Screenshot 2024-03-28 at 11 57 47 AM

cc @andrei-mart

rthallamko3 commented 7 months ago

cc @tverona1 , @gauravk-in as this has impact on cost modeling discussions with Parallel Query. Could be related to https://github.com/yugabyte/yugabyte-db/issues/21670