Skip to content

Commit

Permalink
Merge pull request #20 from GSA/analyze-index
Browse files Browse the repository at this point in the history
ANALYZE db for better performance
  • Loading branch information
FuhuXia authored Jul 12, 2022
2 parents 58020f7 + b1bff5a commit 94f4362
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions 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
cf run-task catalog -c "ckan search-index rebuild -i -o" --name search-index-rebuild -k 2G -m 2G

0 comments on commit 94f4362

Please sign in to comment.