Hi.
Anybody know priority of filters in
DataItemTableView, DataItemLink, OnPreDataItem?
Would be key "First Field","Second field","Third Field" the best in this example :
Property DataItemTableView in report item have filter on "First Field"
Property DataItemLink in report item have link on "Second field"=FIELD("Field from another table")
Triger OnPreDataItem have code
SETRANGE("Third Field",'some value');
?
0
Comments
With older version, data was retrieved in pieces with each DataItem. Indented dataItems were retrieved for the related records only. Newer versions construct a compound SQL query to pull all the data at once.
Talking only about modern NAV\BC, the answer is it does not really matter. As they are all executed before the call to SQL is made. But the specifics can change the structure of the resulting SQL query and thus its performance.