-
Notifications
You must be signed in to change notification settings - Fork 37
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
DST horizontal partitioning #556
Conversation
for the html version.
if isCreatePromiseAndTask { | ||
promiseAndTaskResult := completion.Store.Results[0].CreatePromiseAndTask | ||
util.Assert(promiseAndTaskResult.PromiseRowsAffected == 0 || promiseAndTaskResult.PromiseRowsAffected == 1, "Creating promise result must return 0 or 1 rows") | ||
if promiseAndTaskResult.PromiseRowsAffected == 0 { | ||
util.Assert(promiseAndTaskResult.TaskRowsAffected == 0, "If not promise was created a task must have not been created") | ||
} | ||
} else { | ||
createPromiseResult := completion.Store.Results[0].CreatePromise | ||
util.Assert(createPromiseResult.RowsAffected == 0 || createPromiseResult.RowsAffected == 1, "CreatePromise result must return 0 or 1 rows") | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As a general note, I might want to come back to this code and refactor it in a cleaner way. the isCreatePromiseAndTask
every where makes me believe there is a cleaner approach to it.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #556 +/- ##
==========================================
- Coverage 55.21% 52.38% -2.84%
==========================================
Files 133 133
Lines 14163 14408 +245
==========================================
- Hits 7820 7547 -273
- Misses 5881 6400 +519
+ Partials 462 461 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice! This ended up being quite a chunk of work
Co-authored-by: David Farr <[email protected]>
Co-authored-by: David Farr <[email protected]>
This PR contains several related changes to be able to make the DST run faster and enable validations between promises and tasks.