Validation performance got slower #42604
Unanswered
anderson-lucas
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I just migrated an application from 5.x to 9.x.
I have a data import process into database, which reads a file and performs the validation of each line to avoid inserting an invalid record into database.
It turns out that in version 5.x this happened in an acceptable time. From the update to 9.x, the time has increased by almost 4x.
I performed analysis with a profile tool to ensure that the performance drop was in the validation. (I used the Xdebug profile)
See:
https://im.ge/i/r8jNoD
https://im.ge/i/r8jRh0
https://im.ge/i/r8jWbT
I understand that validation may initially have been created to carry out validations on a request, but it is a very interesting tool that allows its use in any part of the application. That way, I believe we can pay attention and see what can be improved.
Unfortunately I haven't found a good enough solution to open a PR to fix this situation, so I'm opening this thread.
Yours sincerely.
Beta Was this translation helpful? Give feedback.
All reactions