I've been working on modifying a site which was using navisions webservices from 2009, to use Odata from nav 2013.
I had a webgrid that was populated by data from the navision database using an page exposed as a webservice in 2009.
I changed the code to use the odata service from navision 2013 instead of the traditional webservice.
var custLedgerEntries = from c in nav.CommCustLedgEntries
where c.Document_Type == "Invoice" ||
c.Document_Type == "Credit Memo" ||
c.Document_Type == "Payment"
select new srNav.CommCustLedgEntries { Posting_Date = c.Posting_Date,
Document_Type = c.Document_Type,
Document_No = c.Document_No,
Description = c.Description,
Original_Amount = c.Original_Amount,
Remaining_Amount = c.Remaining_Amount,
Entry_No = c.Entry_No
};
I pass the object to a model field, which is then passed into a webgrid in a view.
The time difference is webservice ~ .2sec odata ~ 4sec, that's upwards for 3.8 seconds. At times it can be 10 seconds.
But I can't seem to figure out where the slowdown is.
Has anyone experienced this?
Comments
Does anyone know what would explain this behavior?
Owner of V-Kwadraat (see my blog about Programming and my feed about Gaming!)