LAG Function is slow when using ignore nulls
(Doc ID 2811596.1)
Last updated on JANUARY 11, 2022
Applies to:Oracle Database - Enterprise Edition - Version 188.8.131.52 and later
Information in this document applies to any platform.
Using a similar SQL will be extremely slow taking hours to execute with LAG function and using ignore nulls.
select lag (CUST_MIDDLE_NAME,1) IGNORE NULLS OVER (PARTITION BY H_FAR_ID order by H_FAR_ID,CUST_MIDDLE_NAME) as lag_middlename from ET5379.TAB_HANG;
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document