Skip to content
This repository has been archived by the owner on Mar 31, 2021. It is now read-only.

Commit

Permalink
Introduce a new index on opush_synced_item
Browse files Browse the repository at this point in the history
  • Loading branch information
aduprat committed Dec 22, 2017
1 parent 9cd3770 commit 60721e8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ui/debian/build_obm-storage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -217,4 +217,7 @@ cp ${OBM_UPDATE_SCRIPTS_32}/update-3.2.0~1.pgsql.sql ${UPGRADE_SQL_DIR_PGSQL}/3.
# Upgrade Pg OBM 3.2.1
cp ${OBM_UPDATE_SCRIPTS_32}/update-3.2.1~1.pgsql.sql ${UPGRADE_SQL_DIR_PGSQL}/3.2.1~1

# Upgrade Pg OBM 3.2.2
cp ${OBM_UPDATE_SCRIPTS_32}/update-3.2.2~1.pgsql.sql ${UPGRADE_SQL_DIR_PGSQL}/3.2.2~1

exit 0
5 changes: 5 additions & 0 deletions ui/scripts/3.2/updates/update-3.2.2~1.pgsql.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
BEGIN;

CREATE INDEX opush_synced_item_item_id_idx ON opush_synced_item (item_id);

COMMIT;
3 changes: 3 additions & 0 deletions ui/scripts/creation/install_obmdb_pgsql.sh
Original file line number Diff line number Diff line change
Expand Up @@ -123,4 +123,7 @@ psql -U ${user} -h ${host} ${db} -f \
psql -U ${user} -h ${host} ${db} -f \
"../3.2/updates/update-3.2.1~1.pgsql.sql" >> /tmp/data_insert.log 2>&1

psql -U ${user} -h ${host} ${db} -f \
"../3.2/updates/update-3.2.2~1.pgsql.sql" >> /tmp/data_insert.log 2>&1

echo "DONE."

0 comments on commit 60721e8

Please sign in to comment.