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

[IBCDPE-832] Add script to get data size for Synapse entity #32

Merged
merged 2 commits into from
Apr 3, 2024

Conversation

danlu1
Copy link
Contributor

@danlu1 danlu1 commented Apr 2, 2024

This PR includes a sql script that can print folder structure for Synapse folders and get the total data size in GiB for each folder.

This PR includes a sql script that can print folder structure for Synapse folders and get the total data size in GiB for each folder.
@BryanFauble
Copy link
Contributor

I verified that the Folder content size summing worked as expected. I was happy to see that I could input a Project and sum an entire project size as well.
I used https://www.synapse.org/#!Synapse:syn49637038/files/ as an example. I verified against a query I wrote that the numbers match (22393.32478058 GiB = 21.868481231035155 TiB)
image

image

@thomasyu888
Copy link
Member

thomasyu888 commented Apr 3, 2024

This is fantastic!

Only include datasize calculation part and update variable name to indicate the script works for both folder and project
Copy link

sonarcloud bot commented Apr 3, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@danlu1 danlu1 changed the title Create folder_stats.sql [IBCDPE-832] Add script to get data size for Synapse entity Apr 3, 2024
@danlu1 danlu1 requested a review from BryanFauble April 3, 2024 21:06
Copy link
Contributor

@BryanFauble BryanFauble left a comment

Choose a reason for hiding this comment

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

LGTM!

@danlu1 danlu1 merged commit cc1bee3 into dev Apr 3, 2024
3 checks passed
@thomasyu888 thomasyu888 deleted the folder_structure_data_size branch May 25, 2024 23:32
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.

3 participants