[ARVADOS] updated: 1.1.0-36-g36d2b2d

Git user git at public.curoverse.com
Fri Oct 27 14:47:14 EDT 2017


Summary of changes:
 .../db/migrate/20171027183824_add_index_to_containers.rb | 11 +++++++++++
 services/api/db/structure.sql                            | 16 ++++++++++++++++
 2 files changed, 27 insertions(+)
 create mode 100644 services/api/db/migrate/20171027183824_add_index_to_containers.rb

       via  36d2b2d633801cdeff4bb92d906e48e80042139c (commit)
      from  dcbe7480d9de61ed35fca508b06fa17075fce32c (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 36d2b2d633801cdeff4bb92d906e48e80042139c
Author: Peter Amstutz <pamstutz at veritasgenetics.com>
Date:   Fri Oct 27 14:42:03 2017 -0400

    Migration for indexes on containers and container_requests.
    
    refs #12500
    
    Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <pamstutz at veritasgenetics.com>

diff --git a/services/api/db/migrate/20171027183824_add_index_to_containers.rb b/services/api/db/migrate/20171027183824_add_index_to_containers.rb
new file mode 100644
index 0000000..d90011c
--- /dev/null
+++ b/services/api/db/migrate/20171027183824_add_index_to_containers.rb
@@ -0,0 +1,11 @@
+class AddIndexToContainers < ActiveRecord::Migration
+  def up
+    ActiveRecord::Base.connection.execute("CREATE INDEX index_containers_on_modified_at_uuid ON containers USING btree (modified_at desc, uuid asc)")
+    ActiveRecord::Base.connection.execute("CREATE INDEX index_container_requests_on_container_uuid on container_requests (container_uuid)")
+  end
+
+  def down
+    ActiveRecord::Base.connection.execute("DROP INDEX IF EXISTS index_containers_on_modified_at_uuid")
+    ActiveRecord::Base.connection.execute("DROP INDEX IF EXISTS index_container_requests_on_container_uuid")
+  end
+end
diff --git a/services/api/db/structure.sql b/services/api/db/structure.sql
index 2d078f3..e062d43 100644
--- a/services/api/db/structure.sql
+++ b/services/api/db/structure.sql
@@ -1828,6 +1828,13 @@ CREATE UNIQUE INDEX index_commits_on_repository_name_and_sha1 ON commits USING b
 
 
 --
+-- Name: index_container_requests_on_container_uuid; Type: INDEX; Schema: public; Owner: -
+--
+
+CREATE INDEX index_container_requests_on_container_uuid ON container_requests USING btree (container_uuid);
+
+
+--
 -- Name: index_container_requests_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
 --
 
@@ -1856,6 +1863,13 @@ CREATE UNIQUE INDEX index_container_requests_on_uuid ON container_requests USING
 
 
 --
+-- Name: index_containers_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
+--
+
+CREATE INDEX index_containers_on_modified_at_uuid ON containers USING btree (modified_at DESC, uuid);
+
+
+--
 -- Name: index_containers_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
 --
 
@@ -3016,3 +3030,5 @@ INSERT INTO schema_migrations (version) VALUES ('20170824202826');
 
 INSERT INTO schema_migrations (version) VALUES ('20170906224040');
 
+INSERT INTO schema_migrations (version) VALUES ('20171027183824');
+

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list