Skip to content
This repository was archived by the owner on May 9, 2024. It is now read-only.

[Bench] Reduce input cols number for fetch #590

Merged
merged 1 commit into from
Aug 1, 2023

Conversation

Devjiu
Copy link
Contributor

@Devjiu Devjiu commented Jul 20, 2023

To estimate output size of result query to allocate buffer we are running count* before some actual queries. This estimation requires only query body argumnets without select arguments, so this commit changes input_cols for count* query.

Resolves: #574

Signed-off-by: Dmitrii Makarenko [email protected]

@Devjiu Devjiu force-pushed the dmitriim/reduce_column_inputs_count branch 2 times, most recently from b389f3d to 46afee5 Compare July 20, 2023 18:38
@Devjiu Devjiu force-pushed the dmitriim/reduce_column_inputs_count branch 5 times, most recently from 70cab96 to 3904660 Compare July 31, 2023 12:02
@Devjiu Devjiu requested a review from ienkovich July 31, 2023 17:05
@Devjiu Devjiu marked this pull request as ready for review July 31, 2023 17:05
Copy link
Contributor

@ienkovich ienkovich left a comment

Choose a reason for hiding this comment

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

Looks good! Please fix some minors and it's good to go.

@@ -0,0 +1,68 @@
#include "RelAlgExecutionUnit.h"
Copy link
Contributor

Choose a reason for hiding this comment

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

The license header is missing.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added, check please, I am not sure that I am using correct one. We need to align it along all project.

@@ -0,0 +1,21 @@
#pragma once
Copy link
Contributor

Choose a reason for hiding this comment

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

The license header is missing.

executor_->getDataMgr()->getGpuMgr()->getPlatform() == GpuMgrPlatform::L0;

if (!is_l0)
return;
Copy link
Contributor

Choose a reason for hiding this comment

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

We always use brackets.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@Devjiu Devjiu force-pushed the dmitriim/reduce_column_inputs_count branch 2 times, most recently from f7300b5 to 1188220 Compare August 1, 2023 07:57
@Devjiu
Copy link
Contributor Author

Devjiu commented Aug 1, 2023

Looks good! Please fix some minors and it's good to go.

Should we add someone else to review?

@Devjiu Devjiu force-pushed the dmitriim/reduce_column_inputs_count branch 2 times, most recently from 22e4b41 to 1a007e1 Compare August 1, 2023 19:00
To estimate output size of result query to allocate buffer we are
running `count*` before some actual queries. This estimation requires
only query body argumnets without `select` arguments, so this commit
changes input_cols for `count*` query.

Resolves: #574

Signed-off-by: Dmitrii Makarenko <[email protected]>
@Devjiu Devjiu force-pushed the dmitriim/reduce_column_inputs_count branch from 1a007e1 to 1159aaf Compare August 1, 2023 19:05
@ienkovich ienkovich merged commit 671f8aa into main Aug 1, 2023
@ienkovich ienkovich deleted the dmitriim/reduce_column_inputs_count branch August 1, 2023 21:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Perf][Bench] Join is slow on big tables.
2 participants