Skip to content


DDC-2835: No Lock Hint on Joins #3588

doctrinebot opened this Issue · 0 comments

2 participants


Jira issue originally created by user manseuk:

There seems to be no lock hits added to the joins on a query. For example, take the following query :

SELECT w0*.name AS name0, AS name1, AS name2, count( AS sclr3 FROM workflow_request w3_ WITH (NOLOCK) INNER JOIN workflow_request_status w1_ ON w3_.status_id = INNER JOIN workflow_action w0_ ON w3_.action_id = LEFT JOIN workflow_transition w4_ ON w3_.transition_id = INNER JOIN core_mno_account c5_ ON w4_.mno_account_id = INNER JOIN core_mno c2_ ON c5_.mno_id = LEFT JOIN workflow_state w6_ ON w3_.current_state_id = WHERE w1_.ident IN (?) GROUP BY,, ORDER BY ASC, ASC, c2*.name ASC [["waiting"]]

the with(nolock) is only added to the FROM clause .... it should be added after each join too

@beberlei beberlei was assigned by doctrinebot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.