You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It will compute heavy_function for every row of the table, and then limit to 10 after that. Is this intended behavior or could it be a future optimisation?
A bit more hairy of a situation I think but something like this could also be optimised
c.query("select id, heavy_function(x) from table order by rand() limit 10").to_df()
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
If I have a query like this
It will compute
heavy_functionfor every row of the table, and then limit to 10 after that. Is this intended behavior or could it be a future optimisation?A bit more hairy of a situation I think but something like this could also be optimised
Beta Was this translation helpful? Give feedback.
All reactions