Good morning brains! I’m trying to perform a search on QuoteDtl for a specific QuoteNum using the SearchOptions. I’ve used this process for the QuoteHed table and had fast results, but this one is taking 20+ minutes to return results. I’m using this in customization code for a dashboard.
Here is my code for this…
bool morePagesDtl = false;
string whereClauseDtl = “QuoteNum = ‘78063’”;
QuoteAdapter qDtlAdapt = new QuoteAdapter(oTrans);
qDtlAdapt.BOConnect();
SearchOptions optsDtl = new SearchOptions(SearchMode.AutoSearch);
optsDtl.NamedSearch.WhereClauses.Add(“QuoteDtl”, whereClauseDtl);
DataSet qDtlDataSet = qDtlAdapt.GetRows(optsDtl, out morePagesDtl);
MessageBox.Show("Row count: " + qDtlDataSet.Tables[0].Rows.Count.ToString());
And when it finally does return the results, it shows 16,479 rows gone through when it should only be 10…
Any ideas why it would take so long, instead of quickly returning the 10 rows for the specific quote? Thanks for your time and any help you can give.