A script for parallelizing db updates, where possible user/miker/parallel-db-upgrade
authorMike Rylander <mrylander@gmail.com>
Wed, 3 Apr 2013 16:43:20 +0000 (12:43 -0400)
committerMike Rylander <mrylander@gmail.com>
Wed, 3 Apr 2013 16:43:20 +0000 (12:43 -0400)
commit094194d8e99306ca99571a057b4f984ac8f78a52
tree779ae3c30c705691d734ffb94749e54c05c74359
parentd5d03ce3fde6a59d895cd5cc3739d1299529591b
A script for parallelizing db updates, where possible

This script takes a file of SQL commands, one complete command per line,
and applies them in parallel via psql.

Caveats:
 * no multi-line commands
 * no protection against foot-guns in the SQL (check for injections!)
 * probably will cause puppies to be eaten

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/support-scripts/parallel_db_upgrade.sh [new file with mode: 0644]