diff options
author | Ralph Amissah <ralph@amissah.com> | 2013-10-23 23:59:57 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2013-10-23 23:59:57 -0400 |
commit | 8605801052c23ea408951b4d4054cb90d9caf1f6 (patch) | |
tree | ee82b5108ccc570222ba3f0fd72418a85ca70344 /lib/sisu/v5/db_indexes.rb | |
parent | debian/changelog (4.2.7-1) (diff) | |
parent | v4 v5: dal, collapsed levels implemented (diff) |
Merge tag 'sisu_4.2.8' into debian/sid
SiSU 4.2.8
Diffstat (limited to 'lib/sisu/v5/db_indexes.rb')
-rw-r--r-- | lib/sisu/v5/db_indexes.rb | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/sisu/v5/db_indexes.rb b/lib/sisu/v5/db_indexes.rb index 265d5169..b3e2f45f 100644 --- a/lib/sisu/v5/db_indexes.rb +++ b/lib/sisu/v5/db_indexes.rb @@ -74,7 +74,10 @@ module SiSU_DbIndex end end def base - print "\n create documents common indexes\n" if @opt.cmd =~/[VM]/ + if (@opt.act[:verbose_plus][:set]==:on \ + || @opt.act[:maintenance][:set]==:on) + print "\n create documents common indexes\n" + end sql_arr=[ %{CREATE INDEX idx_ocn ON doc_objects(ocn);}, %{CREATE INDEX idx_digest_clean ON doc_objects(digest_clean);}, @@ -102,7 +105,10 @@ module SiSU_DbIndex conn_execute_array(sql_arr) end def text - print "\n create documents TEXT indexes\n" if @opt.cmd =~/[VM]/ + if (@opt.act[:verbose_plus][:set]==:on \ + || @opt.act[:maintenance][:set]==:on) + print "\n create documents TEXT indexes\n" + end sql_arr=[ %{CREATE INDEX idx_clean ON doc_objects(clean);}, %{CREATE INDEX idx_endnote ON endnotes(clean);} |