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

FIX Run ANALYZE TABLE before fetching table stats #11334

Merged

Conversation

emteknetnz
Copy link
Member

@emteknetnz emteknetnz commented Aug 13, 2024

$this->withTransaction($fn);
} else {
$fn();
$this->query("DELETE FROM \"$table\"");
Copy link
Member

Choose a reason for hiding this comment

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

Need to keep the comment about not using truncate

Copy link
Member Author

Choose a reason for hiding this comment

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

Done

Copy link
Member

@GuySartorelli GuySartorelli left a comment

Choose a reason for hiding this comment

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

Forgot to hit add to review on the above comment, and GitHub doesn't let me not have a comment when I request changes so I have to make a comment even though there's already one and all I want to do is set the status of the PR to reflect the fact that I've requested changes.

Copy link
Member

@GuySartorelli GuySartorelli left a comment

Choose a reason for hiding this comment

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

LGTM

@GuySartorelli GuySartorelli merged commit 9e6ecde into silverstripe:5.2 Aug 14, 2024
14 checks passed
@GuySartorelli GuySartorelli deleted the pulls/5.2/analyze-table branch August 14, 2024 21: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.

2 participants