diff options
author | sangwan.kwon <sangwan.kwon@samsung.com> | 2016-08-22 16:38:33 +0900 |
---|---|---|
committer | sangwan.kwon <sangwan.kwon@samsung.com> | 2016-08-22 16:45:08 +0900 |
commit | f29ce410f572ef3702c6c7897730d9be7c9dab3b (patch) | |
tree | c98b577215e218f001ff895bf669112d876a6a6d | |
parent | e8e2bad106c517029d28938554a84fc32411d228 (diff) | |
download | cert-svc-f29ce410f572ef3702c6c7897730d9be7c9dab3b.tar.gz cert-svc-f29ce410f572ef3702c6c7897730d9be7c9dab3b.tar.bz2 cert-svc-f29ce410f572ef3702c6c7897730d9be7c9dab3b.zip |
Bind transaction on whole queriessubmit/tizen/20160822.023804accepted/tizen/wearable/20160823.041006accepted/tizen/tv/20160823.040941accepted/tizen/mobile/20160823.040919accepted/tizen/ivi/20160823.041026accepted/tizen/common/20160822.132549
[AS-IS]
* Transaction is binded on each insert queries.
[TO-BE]
* Transacion is binded on whole queries.
* It saves build time about 35secs.
Change-Id: I5b36acc8762df1c6492e405f188056a115571fcb
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
-rwxr-xr-x | etc/initialize_store_db.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/initialize_store_db.sh b/etc/initialize_store_db.sh index 4863b9b..17d54c5 100755 --- a/etc/initialize_store_db.sh +++ b/etc/initialize_store_db.sh @@ -36,6 +36,7 @@ function get_common_name() function initialize_store() { + echo "BEGIN TRANSACTION;" >> $ROOT_CERT_SQL for fname in `find $SYSTEM_SSL_DIR/* | sort` do gname=`echo ${fname##*/}` @@ -54,6 +55,7 @@ function initialize_store() (\"$gname\", \"$cert\", \"$subject_hash\", \"$subject_hash_old\", \ \"$common_name\", 1, 1);" >> $ROOT_CERT_SQL done + echo "END TRANSACTION;" >> $ROOT_CERT_SQL } touch $ROOT_CERT_SQL |