Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Turn 'just my code' off just prior to opening an offending dsproj.
  2. Determine the extend of the problem: copy the sql query causing the exception (part of command object) into a text editor
  3. Count the number of occurrences of the string 'JOIN' in the file (as a baseline) -> typically between 64 and 100
  4. Now the hard part: scan through that query and identify plugins / classes that seem to be occurring a lot, or combinations you wouldn't expect
  5. Apply fetch=select on one or more (non-lazy!) relationships where you think it would reduce the number of joins (see rev #21942 as an example)
  6. Reload the project; if the exception still occurs check if the number of JOIN has actually lessened (using text editor)
  7. If not, revert, if it has, find another relationship to change.
  8. Continue until no exception (preferably a bit longer: eg <40 joins!)