20. Januar 2011 23:39
Link nicht gelesen?
Hier wird die Funktionsweise auch nochmal aufgegriffen.
In den Schulungsunterlagen für 5.0 wirds ebenfalls behandelt.
Im Buch von Marc Brummel "Programming Dynamics NAV 2009" wird folgende Aussage getroffen:
S.358 ff
"Following are the various forms of FIND:
FIND('-'): Finds the first record in a table that satisfies the defined filter and current key. Generally not an efficient option for SQL Server as it reads a set of records when many times only a single record is needed.
FINDFIRST: Finds the first record in a table that satisfies the defined filter and defined key choice. Conceptually equivalent to the FIND('-') but much better for SQL Server as it reads a single record, not a set of records.
FIND('+'): Finds the last record in a table that satisfies the defined filter and defined key choice. Often not an efficient option for SQL Server as it reads a set of records when many times only a single record is needed. The exception is when a table is to be processed in reverse order. Then it is appropriate to use FIND('+') with SQL Server.
FINDLAST: Finds the last record in a table that satisfies the defined filter and current key. Conceptually equivalent to the FIND('+') but often much better for SQL Server as it reads a single record, not a set of records.
FINDSET: The efficient way to read a set of records from SQL Server for sequential forward processing. FINDSET allows defining the standard size of the read record cache as a setup parameter, but normally defaults to reading 50 records (table rows) for the first server call. The syntax includes two optional parameters: FINDSET([ForUpdate][, UpdateKey]). The first parameter controls whether or not the read is in preparation for an update and the second parameter........"
Wir weichen an dieser Stelle vom Topic ab...