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

change t_withdrawals to order by index #125

Merged

Conversation

santi1234567
Copy link
Member

Motivation

During the migration process of V3 from postgres to clickhouse, the t_withdrawals table started only storing one withdrawal per slot (there should be a maximum of 16, which is the case for most slots).

Description

Changed the order by column from the t_withdrawals to use f_index since using f_slot only allows one withdrawal per slot (because t_withdrawals uses the ReplacingMergeTree engine). f_index is unique to each withdrawal and makes much more sense.

Proof of Success

image

Closes #122

@santi1234567 santi1234567 added the bug Something isn't working label Jul 26, 2024
@santi1234567 santi1234567 self-assigned this Jul 26, 2024
@santi1234567 santi1234567 linked an issue Jul 26, 2024 that may be closed by this pull request
@santi1234567 santi1234567 merged commit e05673a into master Jul 29, 2024
@santi1234567 santi1234567 deleted the fix/t_withdrawals-contains-only-one-withdrawal-per-slot branch July 29, 2024 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

t_withdrawals contains only one withdrawal per slot
1 participant