]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Add index on tenant_id
authorRoman Podoliaka <rpodolyaka@mirantis.com>
Fri, 19 Dec 2014 10:31:07 +0000 (12:31 +0200)
committerAnn Kamyshnikova <akamyshnikova@mirantis.com>
Tue, 10 Feb 2015 15:17:40 +0000 (18:17 +0300)
commite1cf83534552ca39f8408d531b9f5bd814586ce2
tree977134799e4fe437ae86b050c588485f9389f6e3
parent874dd6db8a7cdfe69727cce97a57f16f7160992b
Add index on tenant_id

This will greatly speed up SELECTs with filters by tenant_id (e.g.
when checking if we are going to exceed the quota value per resource
per tenant).

Closes-bug: #1419815

Change-Id: Iab80cce701e1f12dbf7a4f60d5ce945c6e7d0e2d
neutron/db/migration/alembic_migrations/versions/4119216b7365_add_tenant_id_idx.py [new file with mode: 0644]
neutron/db/migration/alembic_migrations/versions/HEAD
neutron/db/models_v2.py