optimize fetchDepth when no prefetch is desired

This optimizes the case when no fetchDepth is set (meaning its at 0). the query can then be simplified a lot, to make things hopefully cheaper.