Use a merge without output buffers. As soon as result elements have been computed, make that element available to the consumer of the query.