1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-29 10:38:08 +01:00

Add index to database session handler for session expiry

Greatly improves garbage collection performance

Fixes: #4574
This commit is contained in:
Nick Liu 2021-09-25 15:15:33 -05:00
parent 69d5b49525
commit 54ed823aba
No known key found for this signature in database
GPG Key ID: 1167C5F9C9897637

View File

@ -478,8 +478,9 @@ CREATE TABLE session (
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;
# --------------------------------------------------------