Hello,
has anyone any clue, why requesting the virtual table Date (2000000007) can take very long?
I wrote a simple codeunit for test:
DateRec.SETRANGE("Period Type", DateRec."Period Type"::Date);
StartDatetime := CURRENTDATETIME;
DateRec.FINDLAST;
EndDatetime := CURRENTDATETIME;
MESSAGE(STRSUBSTNO('%1 - Duration: %2 ms', DateRec."Period Start", EndDatetime-StartDatetime));
At my local machine (BC14), no duration is given because it's 0 or the duration is about 15 ms after restarting the nav service, but at the customers machine (also BC14) the duration is never below 2.5 seconds.
Answers