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

Use multithreading for GraphQL workflow ingestion #19

Merged
merged 8 commits into from
Sep 16, 2024

Conversation

AdnaneKhan
Copy link
Owner

This PR is the first step in resolving #11. I've moved both the organization repo list query and GraphQL workflow query functionality into the Ingest class. The speed increase is quite impressive. At this point the biggest limiting factor is GitHub's secondary rate limits. Since this is an IO-bound operation it's good to start with multi-threading because the GIL is not going to be the limiting factor.

gato-x e -t microsoft -sr: Enumeration of 4829 repositories with run log analysis off.

  • Start Sun Sep 15 01:07:00 EDT 2024
  • End Sun Sep 15 01:09:47 EDT 2024

This used to take over 10 minutes.

@AdnaneKhan AdnaneKhan marked this pull request as ready for review September 16, 2024 22:50
@AdnaneKhan AdnaneKhan merged commit cb4b027 into main Sep 16, 2024
12 checks passed
@AdnaneKhan AdnaneKhan deleted the graphql_query_threadpool branch September 16, 2024 22:53
@AdnaneKhan AdnaneKhan restored the graphql_query_threadpool branch September 16, 2024 22:53
@AdnaneKhan AdnaneKhan deleted the graphql_query_threadpool branch September 16, 2024 22:53
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