Verified Commit f10c1a05 authored by Leonidas Spyropoulos's avatar Leonidas Spyropoulos
Browse files

perf: add PackageKeywords.PackageBaseID index



This is used on the export for package-meta.v1.gz generation

Signed-off-by: Leonidas Spyropoulos's avatarLeonidas Spyropoulos <artafinde@archlinux.org>
parent 5669821b
......@@ -201,6 +201,7 @@ PackageKeywords = Table(
nullable=False,
server_default=text("''"),
),
Index("KeywordsPackageBaseID", "PackageBaseID"),
mysql_engine="InnoDB",
mysql_charset="utf8mb4",
mysql_collate="utf8mb4_general_ci",
......
"""add PackageKeyword.PackageBaseUID index
Revision ID: 9e3158957fd7
Revises: 6441d3b65270
Create Date: 2022-10-17 11:11:46.203322
"""
from alembic import op
# revision identifiers, used by Alembic.
revision = "9e3158957fd7"
down_revision = "6441d3b65270"
branch_labels = None
depends_on = None
def upgrade():
op.create_index(
"KeywordsPackageBaseID", "PackageKeywords", ["PackageBaseID"], unique=False
)
def downgrade():
op.drop_index("KeywordsPackageBaseID", table_name="PackageKeywords")
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment