I have a dropdown, that is searching against a table in sql server.
The dropdown is looking for option box selection.
There are only 4000 items in the table, but seems a little sluggish on returning records:
Is there a way to optimize this code for better performance ?
If(rdo_SearchChoice.Selected.Value = "Track Code", Filter('[dbo].[v_nsc_trackcode_assigned]',StartsWith(Track_code,cbo_ComboSearch.SearchText)),
rdo_SearchChoice.Selected.Value ="Seller", Filter('[dbo].[v_nsc_trackcode_assigned]',StartsWith('Aligned CSM/MAM',cbo_ComboSearch.SearchText)),
rdo_SearchChoice.Selected.Value ="Track Name", Filter('[dbo].[v_nsc_trackcode_assigned]',StartsWith(Track_Name,cbo_ComboSearch.SearchText)),
rdo_SearchChoice.Selected.Value ="Director", Filter('[dbo].[v_nsc_trackcode_assigned]',StartsWith('Director Name',cbo_ComboSearch.SearchText)))
Dave

Report
All responses (
Answers (