Skip to content

m0000800_alter_product_version_range_scheme is way too slow #1142

Closed
@ctron

Description

@ctron

Having the standard data imported, m0000800_alter_product_version_range_scheme fails to complete withing 2 days.

The problem is the update statement, which has to process the following two tables:

trustify=# select count(*) from version_range;
   count   
-----------
 243556450
trustify=# select count(*) from product_version_range;
   count   
-----------
 145018502

The statement is:

UPDATE version_range SET version_scheme_id = 'rpm' WHERE id IN (SELECT version_range_id FROM product_version_range)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions