I have a condition in a very complex query which is something like
and regexp_substr(service.name, '\d+') = ?
When i run explain plan and check in production this simple filter is causing lot of performance problem.
Any ideas as to how I achieve the goal and yet have better performance? Heard about recursive QTE, but it sounds far fetched.
The goal being take the digits from service.name and compare with input.
Sample data of service.name field would be like
AB 12345
AB1234567
AB 12345
AB:352356
No fixed pattern, should pull digits out of them and compare with input.
service.name LIKE '%' + ? + '%'would do what you need?