You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a problem and I'm looking for a suitable solution
I import by uploading an Excel file by the user
The file is parserd to a huge array and I validate it as unique and / or existe (database).
i response to user the validate and user confirm that, And only now I put the lines in db.
These cases result in one query for each validation and for each row
Imagine I have 5000 or more rows, in practice there should be 10000 queries just for verification, which fills in heavy resources and crashes.
What is the way to do it in the most correct way and in the frame language?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Greetings
I have a problem and I'm looking for a suitable solution
I import by uploading an Excel file by the user
The file is parserd to a huge array and I validate it as unique and / or existe (database).
i response to user the validate and user confirm that, And only now I put the lines in db.
These cases result in one query for each validation and for each row
Imagine I have 5000 or more rows, in practice there should be 10000 queries just for verification, which fills in heavy resources and crashes.
What is the way to do it in the most correct way and in the frame language?
Beta Was this translation helpful? Give feedback.
All reactions