Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Alternative for Binary Search?

koushikking
Explorer
0 Likes
908

Hi Experts,

When am reading internal table into work area by using binary search performance is too good, only if it contains numeric values but if internal table contains any alphabetic values search is failing so i just need alternative way to find records without using linear search as internal table contains huge records.

3 REPLIES 3
Read only

Former Member
0 Likes
728

Binary Search will work even if the key fields are non-numeric. It may be a stupid question, but I hope you are sorting the table by all the search key fields in ascending order before performing the search?

Read only

0 Likes
728

Key field contain both numeric and non numeric values that time search is failing.

Read only

0 Likes
728

If it's a READ reference, can't you make this table of type sorted with unique key, or hashed?