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

Initial refactor for optimising queries #66

Merged
merged 17 commits into from
Jan 28, 2025
Merged

Initial refactor for optimising queries #66

merged 17 commits into from
Jan 28, 2025

Conversation

prquinlan
Copy link
Contributor

Pull Request Contents

♻️ Refactor

Description

Change to simply the code within the query solver to make it easier to optimise the code in future versions.

Related Issues or other material

✅ Added/updated tests?

No new tests added.

  • I've completed all actions and tasks detailed in the PR Template

# Conflicts:
#	src/hutch_bunny/core/query_solvers.py
Previously it first seeded the dataframe from the first in the list, then interated through the rest of the list.

All but the operator and the label was the same, therefore now account for when its the first iteration of the loop, and it switches the label to use on the dataframe.

For the statement building to switch between equals and not equals a new function created.
# Conflicts:
#	src/hutch_bunny/core/query_solvers.py
…_optimise

# Conflicts:
#	src/hutch_bunny/core/query_solvers.py
# Conflicts:
#	src/hutch_bunny/core/obfuscation.py
@prquinlan prquinlan marked this pull request as ready for review January 28, 2025 15:30
# Conflicts:
#	src/hutch_bunny/core/query_solvers.py
@prquinlan prquinlan requested review from AndyRae and vpnu January 28, 2025 15:44
@prquinlan prquinlan merged commit f431d75 into main Jan 28, 2025
5 checks passed
@prquinlan prquinlan deleted the pq_query_optimise branch January 28, 2025 16:39
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