[ARVADOS] updated: cde9231a39026531ec743120956eb129379ff0b0

Git user git at public.curoverse.com
Wed Oct 26 10:35:25 EDT 2016


Summary of changes:
 ...161026141240_add_varchar_pattern_indices_on_logs.rb | 11 +++++++++++
 services/api/db/structure.sql                          | 18 +++++++++++++++++-
 2 files changed, 28 insertions(+), 1 deletion(-)
 create mode 100644 services/api/db/migrate/20161026141240_add_varchar_pattern_indices_on_logs.rb

       via  cde9231a39026531ec743120956eb129379ff0b0 (commit)
      from  5d5954f0b221806198130a0b877d3f377c944a26 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit cde9231a39026531ec743120956eb129379ff0b0
Author: radhika <radhika at curoverse.com>
Date:   Wed Oct 26 10:18:05 2016 -0400

    10028: add varchar pattern index on logs table object_uuid and owner_uuid columns.

diff --git a/services/api/db/migrate/20161026141240_add_varchar_pattern_indices_on_logs.rb b/services/api/db/migrate/20161026141240_add_varchar_pattern_indices_on_logs.rb
new file mode 100644
index 0000000..63f4a3d
--- /dev/null
+++ b/services/api/db/migrate/20161026141240_add_varchar_pattern_indices_on_logs.rb
@@ -0,0 +1,11 @@
+class AddVarcharPatternIndicesOnLogs < ActiveRecord::Migration
+  def up
+    execute "CREATE INDEX logs_varchar_index_on_object_uuid ON logs (object_uuid varchar_pattern_ops);"
+    execute "CREATE INDEX logs_varchar_index_on_owner_uuid ON logs (owner_uuid varchar_pattern_ops);"
+  end
+
+  def down
+    execute "DROP INDEX logs_varchar_index_on_object_uuid;"
+    execute "DROP INDEX logs_varchar_index_on_owner_uuid;"
+  end
+end
diff --git a/services/api/db/structure.sql b/services/api/db/structure.sql
index 0924fc0..a9442b9 100644
--- a/services/api/db/structure.sql
+++ b/services/api/db/structure.sql
@@ -2346,6 +2346,20 @@ CREATE INDEX logs_search_index ON logs USING btree (uuid, owner_uuid, modified_b
 
 
 --
+-- Name: logs_varchar_index_on_object_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
+--
+
+CREATE INDEX logs_varchar_index_on_object_uuid ON logs USING btree (object_uuid varchar_pattern_ops);
+
+
+--
+-- Name: logs_varchar_index_on_owner_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
+--
+
+CREATE INDEX logs_varchar_index_on_owner_uuid ON logs USING btree (owner_uuid varchar_pattern_ops);
+
+
+--
 -- Name: nodes_search_index; Type: INDEX; Schema: public; Owner: -; Tablespace: 
 --
 
@@ -2724,4 +2738,6 @@ INSERT INTO schema_migrations (version) VALUES ('20160926194129');
 
 INSERT INTO schema_migrations (version) VALUES ('20161019171346');
 
-INSERT INTO schema_migrations (version) VALUES ('20161024233727');
\ No newline at end of file
+INSERT INTO schema_migrations (version) VALUES ('20161024233727');
+
+INSERT INTO schema_migrations (version) VALUES ('20161026141240');
\ No newline at end of file

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list