Skip to content
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

ANALYZE db for better performance #20

Merged
merged 2 commits into from
Jul 12, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion docs/fcs_migration/02-fcs-catalog-db-restore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,11 @@ cf rename-service "$catalog_db_migrate" catalog-db
cf unbind-service catalog catalog-db-venerable
cf bind-service catalog catalog-db

# # Upgrade DB and reindex SOLR
# # Upgrade and analyze DB, and reindex SOLR
cf scale catalog -i 0
cf run-task catalog -c "ckan db upgrade"
cf connect-to-service backup-manager catalog-db << EOF
ANALYZE;
EOF
cf scale catalog -i 2
cf run-task catalog -c "ckan search-index rebuild -i -o -e" --name search-index-rebuild -k 2G -m 2G