Skip to content

Why is the performance of my custom functions so different from that of numerical operations? #23220

Closed Answered by hashhar
wodejiong asked this question in Q&A
Discussion options

You must be logged in to vote

The logic is obviously much more involved in the date_trunc case compared to just numerical operations. You should consider recording a JFR profile to see where the time is spent in both cases.

Also for some operations IIRC the engine can apply them in parallel to an entire Page instead of per-row (I'm not 100% sure about this to be honest).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by wodejiong
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #23207 on September 01, 2024 03:14.