Speed of the Browse Filters

SOLVED

I'm calling the browse method and trying to find an order by number. This code takes around 4-5 minutes. Are these method really that slow?

var view = OpenView("OE0520");
view.Browse("ORDNUMBER = 5555555555", true);

Parents Reply
  • 0 in reply to Shane - Ascend Business Solutions

    One more on this, I just want to make sure this is normal from your experience. 

    var view = OpenView("OE0520", DBLinkFlags.ReadOnly);
    view.Browse("", true);

    var gotOne = view.GoTop();
    while (gotOne)
    {

    var orderNumber = (string)view.Fields.FieldByName("ORDNUMBER").Value;


    Console.WriteLine(sageOrder.OrderNumber);


    gotOne = view.GoNext();
    }

    Running this code w/o a filter so it's basically returning all orders - takes 5 minutes for 35,000 orders. That doesn't seem right for a SQL database query

Children