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
  • +1 in reply to JStrz
    verified answer

    Browse will search record by record using the index or order that you've specified.

    If you change the .Order then the .Fetch will arrive at the record much faster.

    If you .Put a key field value into the field and you're using the right .Order then you can call .Read and land right on the record directly.

    To answer your question  - maybe - it depends on your database, volume of data, etc.

    You can use the CS0120 view to call the database directly so if you have other indexes on the table you can find records that aren't indexed by the standard views.

    But - like with any database application - if you're not using an index, you're waiting.

Children