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

cmd/integration: print_table_sizes #10061

Merged
merged 4 commits into from
Apr 25, 2024

Conversation

taratorio
Copy link
Member

No description provided.


var tableSizes []interface{}
err = db.View(cmd.Context(), func(tx kv.Tx) error {
tableSizes = stagedsync.CollectTableSizes(db, tx, kv.ChaindataTables)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can use db.AllTables() instead of kv.ChaindataTables

Copy link
Member Author

@taratorio taratorio Apr 25, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice, thanks - added it and also an --output.csv.file arg

@AskAlexSharov AskAlexSharov enabled auto-merge (squash) April 25, 2024 11:56
@AskAlexSharov AskAlexSharov merged commit a700f92 into devel Apr 25, 2024
6 of 7 checks passed
@AskAlexSharov AskAlexSharov deleted the cmd-integration-print-table-sizes branch April 25, 2024 12:31
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.

None yet

2 participants