mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2026-01-06 04:26:57 +00:00
Entity timeseries table missing index on entityFQN causing slower queries (#7968)
This commit is contained in:
parent
b203a92565
commit
148eb5bf1b
@ -1,6 +1,9 @@
|
||||
--
|
||||
-- Upgrade changes for 0.13
|
||||
--
|
||||
ALTER TABLE `entity_extension_time_series` modify entityFQN varchar(768);
|
||||
ALTER TABLE `entity_extension_time_series` ADD INDEX `entity_fqn_index` (`entityFQN`);
|
||||
|
||||
CREATE TABLE IF NOT EXISTS web_analytic_event (
|
||||
id VARCHAR(36) GENERATED ALWAYS AS (json ->> '$.id') NOT NULL,
|
||||
name VARCHAR(256) GENERATED ALWAYS AS (json ->> '$.name') NOT NULL,
|
||||
|
||||
@ -1,6 +1,11 @@
|
||||
--
|
||||
-- Upgrade changes for 0.13
|
||||
--
|
||||
|
||||
|
||||
ALTER TABLE entity_extension_time_series ALTER COLUMN entityFQN TYPE varchar(768);
|
||||
CREATE INDEX IF NOT EXISTS entity_extension_time_series_entity_fqn_index ON entity_extension_time_series(entityFQN);
|
||||
|
||||
CREATE TABLE IF NOT EXISTS web_analytic_event (
|
||||
id VARCHAR(36) GENERATED ALWAYS AS (json ->> 'id') STORED NOT NULL,
|
||||
name VARCHAR(256) GENERATED ALWAYS AS (json ->> 'name') STORED NOT NULL,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user