Make engine transactions shorter

Registered by Renat Akhmerov

This blueprint has been superseded. See the newer blueprint "Non-locking transactional model" for updated plans.

Make engine transactions shorter. Now direct workflow handler has a pretty heavy DB query to find all completed tasks we haven’t scheduled next tasks for. Theoretically we can optimize it by passing “cause task” to corresponding workflow controller methods and do search only for this task. There may be potential problems with “join” though, need to think how to handler it properly in this case.

In general, we need to look at transactions and try to move out of their scope as much logic as possible, do all possible preprocessing before transactions.

Blueprint information

Status:
Complete
Approver:
Renat Akhmerov
Priority:
High
Drafter:
Renat Akhmerov
Direction:
Approved
Assignee:
Renat Akhmerov
Definition:
Superseded
Series goal:
Accepted for ocata
Implementation:
Not started
Milestone target:
None
Completed by
Renat Akhmerov

Related branches

Sprints

Whiteboard

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.