My Oracle Support Banner

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 11.2.0.1 and later
Information in this document applies to any platform.

Symptoms

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;

Changes

 No changes

Cause

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
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.