I have asked this question before, here is the link to my question.
https://powerusers.microsoft.com/t5/Building-Power-Apps/How-to-setup-connection-with-two-data-sources-and-fulfill-the/td-p/557921
I completed the addition and subtraction function I wanted according to the answerer's settings, but I currently have 1000+ row items in my SP database. This function is no longer valid. There is no error reminder, only one warining. As follows.

ClearCollect(Related_In, DataCardValue18_2.Selected);ClearCollect(Quantity_In, DataCardValue21_2.Text);If("Wait For Confirm" in DataCardValue16.SelectedItems.Value, UpdateContext({show1:true}), SubmitForm(EditForm1_4);
Patch(
'Facility Warehouse Database',
LookUp(
'Facility Warehouse Database',
'Material ID'.Value = First(Related_In).Value
),
{
Qty: LookUp(
'Facility Warehouse Database',
'Material ID'.Value = First(Related_In).Value
).Qty + First(Quantity_In).Value
}
);Navigate(In_Check_BrowseScreen_1, ScreenTransition.UnCoverRight))
I actually want to implement an inventory management calculation. SP_list#1 is used as my inventory list. There are 1000+row items in it. Each item has a unique material ID and its own inventory quantity. My SP_list2# is for warehousing submission. When warehousing submit, fill in the material ID to index to the corresponding row in SP_list#1, and then fill in a quantity, which means that SP_list#1 inventory will increase. Is there a way to perform the above calculations for big data sources?
Thank you!
Dennis