Skip to content

Commit

Permalink
Add index on prev_id_session DB field, see sympa-community#78
Browse files Browse the repository at this point in the history
  • Loading branch information
salaun-urennes1 committed Oct 31, 2018
1 parent 9de0a70 commit 0d7ef72
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/bin/create_db.Sybase
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,9 @@ create table session_table
)
go

create index session_prev_id_index on session_table ( prev_id_session )
go


/* -------------------------------------------------------- */

Expand Down
3 changes: 2 additions & 1 deletion src/lib/Sympa/DatabaseDescription.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1169,7 +1169,8 @@ sub primary {
our %indexes = (
'admin_table' => {'admin_user_index' => ['user_admin']},
'subscriber_table' => {'subscriber_user_index' => ['user_subscriber']},
'stat_table' => {'stats_user_index' => ['email_stat']}
'stat_table' => {'stats_user_index' => ['email_stat']},
'session_table' => {'session_prev_id_index' => ['prev_id_session']},
);

# table indexes that can be removed during upgrade process
Expand Down

0 comments on commit 0d7ef72

Please sign in to comment.