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

Logger issue 49 #593

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion ansible/roles/logger-service/files/db/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -237,4 +237,17 @@ SET character_set_client = @saved_cs_client;


CREATE INDEX esbee_entity_uid ON event_summary_breakdown_email_entity (entity_uid(6));
CREATE INDEX esbre_entity_uid ON event_summary_breakdown_reason_entity (entity_uid(6));
CREATE INDEX esbre_entity_uid ON event_summary_breakdown_reason_entity (entity_uid(6));

-- required indexes for log_event to allow faster/more efficient sorting.
CREATE INDEX month_idx ON log_event (`month`);
CREATE INDEX log_event_type_id_idx ON log_event (`log_event_type_id`);
CREATE INDEX log_source_type_id_idx ON log_event (`log_source_type_id`);
CREATE INDEX log_reason_type_id_idx ON log_event (`log_reason_type_id`);
CREATE INDEX user_email_idx ON log_event (`user_email`);
CREATE INDEX source_idx ON log_event (`source`);

-- required indexes for log_detail to allow faster/more efficient sorting.
CREATE INDEX entity_type_idx ON log_detail (`entity_type`);
CREATE INDEX entity_uid_idx ON log_detail (`entity_uid`);
CREATE INDEX record_count_idx ON log_detail (`record_count`);