Skip to content

Conversation

@wbr-chift
Copy link
Contributor

@wbr-chift wbr-chift commented Jun 16, 2025

Makes it possible to iterate through a Generator instead of having to
load all data in memory when calling all.

@wbr-chift wbr-chift changed the title feat(mixins): add generator equivalents for paginated all method feat(mixins): add iter_all to PaginationMixin Jun 16, 2025
@wbr-chift wbr-chift requested a review from hhertoghe June 16, 2025 14:11
@hhertoghe hhertoghe requested review from grasflorian June 17, 2025 20:24
Copy link
Contributor

@hhertoghe hhertoghe left a comment

Choose a reason for hiding this comment

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

Few comments, thanks , looks good to me globally, I've asked Florian to take a look as well.
I guess we should only user iter_all in syncs when we know that we do not need to retrieve everything first ?

Makes it possible to iterate through a Generator instead of having to
load all data in memory when calling all.
Adds the necessary overload to cover the different types of returns
covered from our different mixins.
@wbr-chift wbr-chift force-pushed the williambraeckman/bac-284-optimize-sync-ecommerce branch from 41e5429 to fdeebcf Compare June 18, 2025 07:15
Copy link
Contributor

@grasflorian grasflorian left a comment

Choose a reason for hiding this comment

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

Looks good to me :)

@wbr-chift
Copy link
Contributor Author

@hhertoghe @grasflorian should be good

Copy link
Contributor

@grasflorian grasflorian left a comment

Choose a reason for hiding this comment

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

looks good !

@hhertoghe hhertoghe merged commit b2a77e9 into main Jun 20, 2025
2 of 3 checks passed
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.

4 participants