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

Performance question with indexes #127

Open
masudhossain opened this issue May 14, 2021 · 1 comment
Open

Performance question with indexes #127

masudhossain opened this issue May 14, 2021 · 1 comment

Comments

@masudhossain
Copy link

I saw the author wrote Hint: You should add a database index on messages.created_at., which I've tried but performance is still very very slow right now.

Maybe i'm misunderstanding it. I'm suppose to add :created_at index to the messages database table, right?

Example: add_index(:messages, :created_at)

@fatkodima
Copy link
Contributor

I'm suppose to add :created_at index to the messages database table, right?

Yes.

Can you share an explain analyze of your slow query?

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