Skip to content

Commit

Permalink
Added followup to post
Browse files Browse the repository at this point in the history
  • Loading branch information
ryankirkman committed Mar 13, 2013
1 parent 2e677f8 commit b483fd4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions _posts/2013-03-12-sqlce-inner-join-to-left-join-5x-speedup.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,6 @@ Notice the difference? The second query uses a `LEFT JOIN` instead of an `INNER

> Other behavior that I noticed was that if I changed the inner join to a left join, the optimizer came up with a different much more efficient plan. This appears to be a flaw in the optimizer but I would like to speak to someone at Microsoft before making that claim.
By changing the first `INNER JOIN` to a `LEFT JOIN`, the slow query dropped from around 8 seconds completion time to between 1 and 2 seconds.

Note that this may only apply to a certain subset of queries under special circumstances. I haven't done an extensive investigation.

0 comments on commit b483fd4

Please sign in to comment.