Skip to content

Conversation

@taylorkj
Copy link
Member

@taylorkj taylorkj commented Mar 1, 2017

@jpknoll @srkirkland:

Here are the revisions I came up with. In a nutshell, I reverted back to using the individual index seeks instead of index scans for the OrderStatusCodes. I also put the main regular permissions query in an inner query, and the filtering by Login in an outer query so the case statement would not have to be evaluated twice, i.e., once in the select statement, and once in the where clause.

Lastly, I moved the majority of the comparisons out of the where clause and up to the individual joins just to make it easier to follow what was going on.

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