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

Speed up pagination for pit_crew #491

Merged
merged 1 commit into from
Apr 5, 2024
Merged

Conversation

methylDragon
Copy link
Collaborator

@methylDragon methylDragon commented Apr 4, 2024

The default number of models that fuel returns is 20. This PR makes the number of models returned per page 5x larger, meaning fewer calls are made, and pagination completes much faster.

Setting the per_page to higher than 100 causes fuel to reject the arg and drop you back down to 10 models per page.

This mostly impacts people building from scratch, since the greatest impact is on initial building of the model cache.

Signed-off-by: methylDragon <methylDragon@gmail.com>
@methylDragon
Copy link
Collaborator Author

PS: I don't know why DCO is failing even though I have a signoff.

@luca-della-vedova
Copy link
Member

Looks good! It seems the DCO expected @google.com but got @gmail.com instead, but I think that's OK.

@luca-della-vedova luca-della-vedova enabled auto-merge (squash) April 5, 2024 01:52
@luca-della-vedova luca-della-vedova merged commit ed39754 into main Apr 5, 2024
5 checks passed
@luca-della-vedova luca-della-vedova deleted the ch3/speedup-pitcrew branch April 5, 2024 01:52
koonpeng pushed a commit that referenced this pull request Jun 12, 2024
Signed-off-by: methylDragon <methylDragon@gmail.com>
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