Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #15063: Change index on ruddersysevents to remove inefficient component index and replace it by a composite index #2255

Conversation

3 participants
@ncharles
Copy link
Member

commented Jun 12, 2019

Fixes #15063: Change index on ruddersysevents to remove inefficient c…
…omponent index and replace it by a composite index

@ncharles ncharles force-pushed the ncharles:bug_15063/change_index_on_ruddersysevents_to_remove_inefficient_component_index_and_replace_it_by_a_composite_index branch from 1d24241 to 7a47550 Jun 12, 2019

@ncharles

This comment has been minimized.

Copy link
Member Author

commented Jun 12, 2019

Commit modified

@fanf

fanf approved these changes Jun 12, 2019

@Normation-Quality-Assistant

This comment has been minimized.

Copy link

commented Jun 12, 2019

OK, merging this PR

@Normation-Quality-Assistant Normation-Quality-Assistant merged commit 7a47550 into Normation:branches/rudder/5.0 Jun 12, 2019

CREATE INDEX keyValue_idx ON RudderSysEvents (keyValue);
CREATE INDEX ruleId_idx ON RudderSysEvents (ruleId);

CREATE INDEX endRun_control_idx ON RudderSysEvents (id) WHERE eventType = 'control' and component = 'end';

This comment has been minimized.

Copy link
@ncharles

ncharles Jun 13, 2019

Author Member

this index is super efficient in size: 29 MB with a ruddersysevents of 147Gb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.