alamb commented on issue #25033:
URL: https://github.com/apache/datafusion/issues/25033#issuecomment-6745369469

   > If score is enough to order two rows, comparing them does not require 
md5(payload). For TopK, rows whose score cannot reach the result do not need 
the second key either.
   
   
   This is a reasonable observation. However, the downside is that now you have 
to check (potentially for every row) if you need to evaluate the second 
expression, which you can't vectorize as easily (and thus will go slower)
   
   to avoid performance regressions, I suspect we would have to implement some 
sort of dynamic switching between strategies depending on the rows, or somthing 
like that


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to