Skip to content

db migration 212 #1958

Description

@peterjanssens

migration 212 seems to take quite some time to run because of the (large) ca_sql_search_word_index.

would it be an option to combine the three last statements so that the recalculations are (perhaps) not 3x ?

ALTER TABLE ca_sql_search_word_index
MODIFY COLUMN word_index mediumint unsigned not null default 0,
MODIFY COLUMN word_count mediumint unsigned not null default 0,
MODIFY COLUMN field_index mediumint unsigned not null default 0;

would it be faster to:
a) drop the (table) indexes (i_....) before, and rebuilding them after the alters in that migration script,
... DROP INDEX i_row_id;
...
ALTER TABLE MODIFY COLUMN...
... ADD INDEX i_row_id
...

b) or dropping(truncating) the entire search tables and rebuild them after the sql/migration with rebuild-search utils ?

(option b is not as set and forget as option a, that is more verbose and maybe prone to legacy migration issues ??)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions