Reworked name_search() to make a series of incremental search statements instead of a big disjunction. This should handle the potential performance issue. It also stops searching when the search limit has been reached.
Added some comments to justify the code as well.
Reworked name_search() to make a series of incremental search statements instead of a big disjunction. This should handle the potential performance issue. It also stops searching when the search limit has been reached.
Added some comments to justify the code as well.