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

[3.x] Add index to created_at #885

Merged
merged 2 commits into from
May 5, 2020
Merged

[3.x] Add index to created_at #885

merged 2 commits into from
May 5, 2020

Conversation

keyboardSmasher
Copy link
Contributor

When the telescope_entries table gets very large, telescope:prune will fail miserably, actually bringing an AWS db instance to its knees. This is because telescope:prune is using created_at in a where clause when there's no index on that column.

When the `telescope_entries` table gets large, `telescope:prune` will fail miserably, actually bringing an AWS db instance to its knees. This is because `telescope:prune` is using `created_at` in a where clause when there's no index on that column.
@barryvdh
Copy link
Contributor

barryvdh commented May 5, 2020

You might want to add the index the same way as the other indexes, but the idea looks fine to me :)

Grouped indices based on @barryvdh feedback
@driesvints driesvints changed the title Add index to created_at [3.x] Add index to created_at May 5, 2020
@taylorotwell taylorotwell merged commit d6d6269 into laravel:3.x May 5, 2020
@keyboardSmasher keyboardSmasher deleted the keyboardSmasher-patch-1 branch May 5, 2020 15:00
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

Successfully merging this pull request may close these issues.

3 participants