-
-
Notifications
You must be signed in to change notification settings - Fork 31.6k
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
Fixed #31275 -- Optimized sql_flush() without resetting sequence on MySQL. #12634
Conversation
sql_flush()
faster on MySQL.
baae1d5
to
6cd0a83
Compare
Hmm... I don't know why this change breaks tests like: Is it an existing issue? |
@c-bata the failure was introduced by your proposed changes but the failure you pointed at seems to be a side effect on another crash. If you look at the raw stdout output of the suite execution you'll notice that the first failure is
Since |
Hi @charettes. Thank you for your swift reply! I see. I'll debug the problem. |
This comment has been minimized.
This comment has been minimized.
The benchmark result of c3c1470 is:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a big fan of the approximate rows heuristic but I can't think of anything better.
c932ea3
to
91d3e20
Compare
I force-pushed to resolve conflicts and squash commits. |
I agree with Simon. @c-bata Do you have time to update this patch? If not I can do this. |
sql_flush()
faster on MySQL.
I see! I'll update soon! |
384f57a
to
ac948a0
Compare
99d8419
to
44a779d
Compare
…MySQL. Co-Authored-By: Simon Charette <charettes@users.noreply.github.com>
@c-bata Thanks 👍 Welcome aboard ⛵ |
I checked the time taken by
flush
command with 100 tables. See the source code at https://github.com/c-bata/django-fast-mysql-flushreset_sequences=False
(default)reset_sequences=True
(optional)Please note that the benchmark script was run on my laptop. So the times should not be taken precisely.
Ticket URL is https://code.djangoproject.com/ticket/31275