Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@waketzheng
Copy link
Contributor

Description

Currently, the aerich.migrate.Migrate._get_last_version_num function will select all columns of aerich when querying db.
It is wasting time, especially when aerich table has many records and data of content column is large.

This PR change to function query to only select the 'version' column to improve performance.

@waketzheng waketzheng merged commit 1647b56 into tortoise:dev Oct 18, 2025
34 checks passed
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