HI @HansHeintz ,
Based on the issue that you mentioned, I think it is normal behaviour with the LookUp formula applied to the SQL Table.
When the LookUp formula is executed, it would iterate all items stored in your SQL Table, and then find the first record which matched the filter condition you specificed.
In order to improve the LookUp formula execution performance within your app, you could consider add a Index to the corresponding Search column (e.g. 'identificatie_nummer_asiel') within your SQL Table. The Index could speed up the data retrieval within your SQL Table.
As another solution, you could also consider save your SQL Table records into a collection (called "SQLTableRecords") within your app, then use the collection as data source within your LookUp formula instead of the Original SQL Table data source.
I have made a test on my side, please consider take a try with the following workaround:
Set the OnStart property of the App control to following:
ClearCollect(SQLTableRecords; '[dbo].[dier]_1');
then modify your LookUp formula as below:
LookUp(SQLTableRecords; identificatie_nummer_asiel=DierId; naam) /* <-- for your syntax1 */
please re-load your app, then check if the issue is solved.
You could also consider put your above two ClearCollect formula within the OnStart property of the App control. Set the OnStart property of the App control to following:
Concurrent(
ClearCollect(SQLTableRecords, '[dbo].[dier]_1'),
ClearCollect(collection1, filter(mytable, somefilter))
);
ClearCollect(
collection2,
addcolums(
collection1,
'col1', LookUp(SQLTableRecords, identificatie_nummer_asiel = DierId, naam),
'col2', syntax2
)
)
then set the Items property of the Gallery to following:
collection2
Please take a try with above solution, then check if the issue is solved.
Best regards,