query refactoring an rowcount clipping for UI datatables
that are slow when using millions of subscribers:
contacts
customers
contracts
subscribers
billing profiles
billing networks
billing profile packages
Change-Id: Ia50e3aa52684772548569b6908f0cbc08395a5a7
(cherry picked from commit 133bd43df4)
#for search string from one search input we need to check all columns which contain the 'search' spec (now: qw/search search_lower_column search_upper_column/). so, for example user entered into search input ip address - we don't know that it is ip address, so we check that name like search OR id like search OR search is between network_lower_value and network upper value
foreachmy$col(@{$cols}){
my($name,$search_value,$op,$convert);
@ -337,6 +336,7 @@ sub _apply_search_filters {
#...things in arrays are OR'ed, and things in hashes are AND'ed