UBarney commented on issue #16364:
URL: https://github.com/apache/datafusion/issues/16364#issuecomment-2967225093

   
   > limiting the the intermediate result to ~1 batch size is enough to keep 
the performance.
   
   Do you mean we should also limit num_row of  [`left_side, 
right_side`](https://github.com/apache/datafusion/blob/69dfe6c499d39563f4e6d9835fcdf3793f7d98c8/datafusion/physical-plan/src/joins/nested_loop_join.rs#L986)
 to 1 batch size ? By joining only one left row with the right batch at a time? 
   
   This is the easiest way to implement. This is the only limitation we need 
apply
   
   I thought that increasing the size of the intermediate result for 
(left_side, right_side) might lead to better performance. But then I realized 
that if we truly want better performance, we should **avoid** using nlj 😂


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to