Quantcast
Channel: NAV Three Tier — mibuso.com
Viewing all articles
Browse latest Browse all 10032

Why does card page retrieve 50 rows from DB and how to prevent it?

$
0
0
Hello,

In NAV 2016 RTC client I have intuitively expected that the Card page will read only the single record + its flowfields that is just displayed. However it seems that RTC client reads instead 50 records (using SELECT TOP (49) ... and OPTION(optimize FOR unknown, fast 50)). Is it possible to somehow prevent this behaviour?
Card pages may often show a lot of the information (flowfields) on it which may cost quite a lot of the SQL resources to calculate. When reading this information for 50 records when I actually need it for single record displayed on the card makes no sense to me. In my scenario this behaviour costs me almost 30 seconds in performance for EACH record. Even the argument that it reads just in case that I want to go to the next record while staying on the card page doesn't help as NAV actually re-reads fresh 50 records when I go to the next record.
In my example, that card page should be surely optimized in NAV, however if the NAV engine helped me by not reading 50 records that won't be ever used, it would be a big help as well ...

Any ideas how to suppress this behaviour? Are there any options in CustomSettings or anything else I can do easily? If this behaviour is intentional could anyone please explain to me what is the reason behind?

Thanks,
Igor

Viewing all articles
Browse latest Browse all 10032

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>