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

Replace DELETE FROM to TRUNCATE to empty woocommerce_sessions table #10603

Merged
merged 1 commit into from Mar 29, 2016
Merged

Replace DELETE FROM to TRUNCATE to empty woocommerce_sessions table #10603

merged 1 commit into from Mar 29, 2016

Conversation

toddlahman
Copy link
Contributor

If the size of the woocommerce_sessions table is 3.4 GB before the
Clear all sessions button is clicked, then it will delete all rows, but
leave the table size 3.3 GB. Truncating/emptying the table resets the size
of the table, and deletes all rows.

Before delete:

screenshot 2016-03-24 13 56 12

After delete:

screenshot 2016-03-24 14 05 38

After truncate:

screenshot 2016-03-24 14 08 09

If the size of the woocommerce_sessions table is 3.2 GB before the
Clear all sessions button is clicked, then it will delete all rows, but
leave the table size 3.2. Truncating/emptying the table resets the size
of the table, and deletes all rows.
@mikejolley mikejolley merged commit 1795883 into woocommerce:master Mar 29, 2016
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.

None yet

2 participants