feat(DB): indexes for parent_error_id
This commit is contained in:
parent
6fc3840fa0
commit
d6cdb28123
4 changed files with 4 additions and 0 deletions
|
|
@ -72,4 +72,5 @@ DROP INDEX IF EXISTS sessions_project_id_user_country_idx1;
|
|||
ALTER INDEX IF EXISTS platform_idx RENAME TO sessions_platform_idx;
|
||||
ALTER INDEX IF EXISTS events.resources_duration_idx RENAME TO resources_duration_durationgt0_idx;
|
||||
DROP INDEX IF EXISTS projects_project_key_idx1;
|
||||
CREATE INDEX IF NOT EXISTS errors_parent_error_id_idx ON errors (parent_error_id);
|
||||
COMMIT;
|
||||
|
|
@ -497,6 +497,7 @@ $$
|
|||
CREATE INDEX errors_project_id_error_id_idx ON public.errors (project_id, error_id);
|
||||
CREATE INDEX errors_project_id_error_id_integration_idx ON public.errors (project_id, error_id) WHERE source != 'js_exception';
|
||||
CREATE INDEX errors_error_id_idx ON errors (error_id);
|
||||
CREATE INDEX errors_parent_error_id_idx ON errors (parent_error_id);
|
||||
|
||||
CREATE TABLE user_favorite_errors
|
||||
(
|
||||
|
|
|
|||
|
|
@ -23,4 +23,5 @@ DROP INDEX IF EXISTS sessions_project_id_user_country_idx1;
|
|||
ALTER INDEX IF EXISTS platform_idx RENAME TO sessions_platform_idx;
|
||||
ALTER INDEX IF EXISTS events.resources_duration_idx RENAME TO resources_duration_durationgt0_idx;
|
||||
DROP INDEX IF EXISTS projects_project_key_idx1;
|
||||
CREATE INDEX IF NOT EXISTS errors_parent_error_id_idx ON errors (parent_error_id);
|
||||
COMMIT;
|
||||
|
|
@ -462,6 +462,7 @@ $$
|
|||
CREATE INDEX errors_project_id_error_id_idx ON public.errors (project_id, error_id);
|
||||
CREATE INDEX errors_project_id_error_id_integration_idx ON public.errors (project_id, error_id) WHERE source != 'js_exception';
|
||||
CREATE INDEX errors_error_id_idx ON errors (error_id);
|
||||
CREATE INDEX errors_parent_error_id_idx ON errors (parent_error_id);
|
||||
|
||||
CREATE TABLE user_favorite_errors
|
||||
(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue