Skip to content

Commit

Permalink
Add index to database session handler for session expiry
Browse files Browse the repository at this point in the history
Greatly improves garbage collection performance

Fixes: #4574
  • Loading branch information
Deltik committed Sep 25, 2021
1 parent 69d5b49 commit 54ed823
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions e107_core/sql/core_sql.php
Original file line number Diff line number Diff line change
Expand Up @@ -478,8 +478,9 @@
session_id varchar(250) NOT NULL default '',
session_expires int(10) unsigned NOT NULL default 0,
session_user int(10) unsigned default NULL,
session_data mediumtext NOT NULL,
PRIMARY KEY (session_id)
session_data longtext NOT NULL,
PRIMARY KEY (session_id),
INDEX (session_expires)
) ENGINE=MyISAM;
# --------------------------------------------------------

Expand Down

0 comments on commit 54ed823

Please sign in to comment.