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

CREATE SQL statement optimization #5

Open
hohl opened this issue Sep 9, 2014 · 1 comment
Open

CREATE SQL statement optimization #5

hohl opened this issue Sep 9, 2014 · 1 comment

Comments

@hohl
Copy link

hohl commented Sep 9, 2014

You can reduce the recommended DB table setup (at README.md):

CREATE TABLE IF NOT EXISTS `sessions` (
  `id` varchar(32) NOT NULL,
  `timestamp` int(10) unsigned DEFAULT NULL,
  `data` mediumtext,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
@soulseekah
Copy link

Also needs index on timestamp.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants