SQL Performance (MOSC)

MOSC Banner

Help with SQL tuning

edited Jul 31, 2016 5:00AM in SQL Performance (MOSC) 8 commentsAnswered

Hi Folks,

Have a requirement to tune a SQL query with a LIKE statement.

The search is based on email domains,

EMAIL LIKE ('%.gmail.com')

The query fetches results almost immediately when it has a wildcard character at the end, but slow when wildcard is in the front.

I understand wildcard as the first character tends pose problems as it doesn't use index in a proper way.

Looking for your advice.

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