Skip to content

Add resource-level override for 'OPTIMIZE_PAGINATION_FOR_SPEED'#1569

Merged
nicolaiarocci merged 7 commits intopyeve:masterfrom
edigiacomo:optimize_pagination_for_speed
Mar 19, 2026
Merged

Add resource-level override for 'OPTIMIZE_PAGINATION_FOR_SPEED'#1569
nicolaiarocci merged 7 commits intopyeve:masterfrom
edigiacomo:optimize_pagination_for_speed

Conversation

@edigiacomo
Copy link
Copy Markdown
Contributor

OPTIMIZE_PAGINATION_FOR_SPEED is currently a global-only setting. This is problematic for APIs with mixed requirements: high-volume resources need the speed optimization (no total count), while smaller resources could require an accurate total for the UI/frontend.

This PR introduces a resource-level setting optimize_pagination_for_speed that allows granular control, overriding the global configuration when defined.

@nicolaiarocci
Copy link
Copy Markdown
Member

A solid upgrade, thank you. Would you mind upgrading the documentation as well?

@edigiacomo
Copy link
Copy Markdown
Contributor Author

Thank you! Absolutely, I'll push the documentation in this PR.

@edigiacomo
Copy link
Copy Markdown
Contributor Author

I've documented the option in the "Resource / Item Endpoints" section. I had to adjust the indentation for all descriptions to accommodate the longer option name and keep everything aligned.

@nicolaiarocci nicolaiarocci merged commit 3059643 into pyeve:master Mar 19, 2026
5 checks passed
nicolaiarocci added a commit that referenced this pull request Mar 19, 2026
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.

2 participants