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

Use better indexes in login_token table. #4191

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

EreMaijala
Copy link
Contributor

The new indexes better match the queries improving database efficiency.

The new indexes better match the queries improving database efficiency.
@EreMaijala EreMaijala requested a review from demiankatz January 20, 2025 09:42
@EreMaijala
Copy link
Contributor Author

Postgresql changes tested too!

Copy link
Member

@demiankatz demiankatz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One small naming nitpick...

@@ -429,6 +429,7 @@ CREATE TABLE `login_token` (
`expires` int NOT NULL,
`last_session_id` varchar(255) NULL,
PRIMARY KEY (`id`),
KEY `user_id_series` (`user_id`, `series`)
KEY `user_id_series` (`user_id`),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this key be renamed since it no longer includes the series?

@demiankatz demiankatz added this to the 11.0 milestone Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants