Skip to content

Conversation

@aj-fuentes
Copy link
Contributor

When exploding a query we may need to add the same parallel filter in multiple places.

@aj-fuentes aj-fuentes requested a review from KangOl January 16, 2024 08:53
@robodoo
Copy link
Contributor

robodoo commented Jan 16, 2024

src/util/pg.py Outdated
return [query.format(parallel_filter=parallel_filter)]

parallel_filter = "{alias}.id BETWEEN %s AND %s".format(alias=alias)
parallel_filter = "{alias}.id BETWEEN %(low)s AND %(high)s".format(alias=alias)
Copy link
Contributor

Choose a reason for hiding this comment

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

Nitpicking on variable name:

Suggested change
parallel_filter = "{alias}.id BETWEEN %(low)s AND %(high)s".format(alias=alias)
parallel_filter = "{alias}.id BETWEEN %(lower-bound)s AND %(upper-bound)s".format(alias=alias)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

When exploding a query we may need to add the same parallel filter in
multiple places.
@aj-fuentes aj-fuentes force-pushed the master-imp_explode-afu branch from 508cd09 to 4402958 Compare January 16, 2024 10:07
@KangOl
Copy link
Contributor

KangOl commented Jan 16, 2024

upgradeci retry with always only hr

@KangOl
Copy link
Contributor

KangOl commented Jan 16, 2024

@robodoo r+

robodoo pushed a commit that referenced this pull request Jan 16, 2024
When exploding a query we may need to add the same parallel filter in
multiple places.

closes #38

Signed-off-by: Christophe Simonis (chs) <chs@odoo.com>
@robodoo robodoo closed this in d97d115 Jan 16, 2024
@robodoo robodoo added the 17.2 label Jan 16, 2024
@aj-fuentes aj-fuentes deleted the master-imp_explode-afu branch January 17, 2024 07:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants