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

meta/sql: fix readdir query #5482

Merged
merged 1 commit into from
Dec 30, 2024
Merged

meta/sql: fix readdir query #5482

merged 1 commit into from
Dec 30, 2024

Conversation

jiefenghuang
Copy link
Contributor

close #5479
Forcing the database to use composite index (parent, name) when querying the edge table in readdir stream and sorting based on the composite index.

It is the default behavior in MySQL to sorted by composite index, but not in PostgreSQL.

Signed-off-by: jiefenghuang <[email protected]>
@davies davies merged commit 2dbd135 into main Dec 30, 2024
38 checks passed
@davies davies deleted the fix-sql-readdir branch December 30, 2024 13:48
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.

result of readdir incorrect after load to postgres.
2 participants