Skip to content

Decrease cardinality to stabilize tests#196

Merged
macbre merged 8 commits intomasterfrom
tests-decrease-cardinality
Dec 23, 2020
Merged

Decrease cardinality to stabilize tests#196
macbre merged 8 commits intomasterfrom
tests-decrease-cardinality

Conversation

@macbre
Copy link
Owner

@macbre macbre commented Dec 22, 2020

Run ANALYZE TABLE after setting up big table for tests.

For InnoDB tables, ANALYZE TABLE determines index cardinality by performing random dives on each of the index trees and updating index cardinality estimates accordingly. Because these are only estimates, repeated runs of ANALYZE TABLE could produce different numbers. This makes ANALYZE TABLE fast on InnoDB tables but not 100% accurate because it does not take all rows into account.

-- https://dev.mysql.com/doc/refman/8.0/en/analyze-table.html

@macbre macbre marked this pull request as ready for review December 23, 2020 16:37
@macbre macbre merged commit 79d86a2 into master Dec 23, 2020
@macbre macbre deleted the tests-decrease-cardinality branch December 23, 2020 16:38
@macbre macbre added this to the v1.4.0 milestone Dec 24, 2020
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.

1 participant