SQL Performance (MOSC)

MOSC Banner

using index in execution plan

edited Nov 29, 2018 10:08PM in SQL Performance (MOSC) 16 commentsAnswered ✓

HI all,

I have a table named RTBS_SUBS_EVENT and there is a date column named expiry_date.

expiry_date is a partitioned column too. a column named ID and it's indexed.

NLS_DATE_FORMAT of the database is 'DD-MON-RR'.

I run those queries and they return the different explain plan:

Query 01:

SELECT *

FROM stage.RTBS_SUBS_EVENT 

WHERE event_date > '25-Sep-2018'

AND subscriber_ID = '84523891696';

Plan hash value: 2001189060

------------------------------------------------------------------------------------------------------------

| Id  | Operation                | Name            | Rows  | Bytes | Cost (%CPU)| Time     | Pstart| Pstop |

------------------------------------------------------------------------------------------------------------

|   0 | SELECT STATEMENT         |                 |     1 |   140 |    28   (0)| 00:00:01 |       |       |

|   1 |  PARTITION RANGE ITERATOR|                 |     1 |   140 |    28   (0)| 00:00:01 |  1729 |  1826 |

|*  2 |   TABLE ACCESS FULL      | RTBS_SUBS_EVENT |     1 |   140 |    28   (0)| 00:00:01 |  1729 |  1826 |

------------------------------------------------------------------------------------------------------------

Predicate Information (identified by operation id):

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center