-
Notifications
You must be signed in to change notification settings - Fork 4
Run ANALYZE after setting up benchmark tables #136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -61,3 +61,7 @@ DATA_GEN_SCRIPT_PATH=$(readlink -f ../../benchmark_data_tools/generate_data_file | |
| $CONVERT_DECIMALS_TO_FLOATS_ARG | ||
|
|
||
| ./setup_benchmark_tables.sh -b $BENCHMARK_TYPE -s $SCHEMA_NAME -d $DATA_DIR_NAME | ||
|
|
||
| echo "Running ANALYZE TABLES for schema '$SCHEMA_NAME'..." | ||
| ./analyze_tables.sh --schema-name "$SCHEMA_NAME" | ||
| echo "Column statistics refreshed for schema '$SCHEMA_NAME'." | ||
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -50,3 +50,7 @@ trap cleanup EXIT | |
| --schema-name $SCHEMA_NAME \ | ||
| --schemas-dir-path $TEMP_SCHEMA_DIR \ | ||
| --data-dir-name $DATA_DIR_NAME | ||
|
|
||
| echo "Running ANALYZE TABLES for schema '$SCHEMA_NAME'..." | ||
|
||
| ./analyze_tables.sh --schema-name "$SCHEMA_NAME" | ||
| echo "Column statistics refreshed for schema '$SCHEMA_NAME'." | ||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It probably makes sense to make this optional. Otherwise, for the foreseeable future this would place a CPU worker requirement on this script (due to the requirement on the analyze tables script.)
That is add a command line option to this script that (may be enabled by default) will toggle this behaviour on/off.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, and I'm in favor of having the option "on" by default.
I think we should also add a check when the option is "on" to make sure we are running on CPU workers (as ANALYZE is currently not supported by GPU workers, as Matt alluded to). If the option is set and we are running on GPU, then I think we should abort the script with an error suggesting we run
analyze_tables.shwith CPU workers