-
-
Notifications
You must be signed in to change notification settings - Fork 436
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rewrite isTableExists for performance reasons #1720
Conversation
faster implementation of isTableExists withous "showtablestatus"
Have you seen any performance issues from this? Just curious. |
in Magento1 I have not seen any specific issues with is, with an up to date cache implementation. Some old ones had some impact that was otherwise fixed. In M2 this makes quite some difference. |
Thanks. I read your write up on M2. That was very detailed. Awesome report. Seems they're doing a ton of checking if tables exist. Seems like a bad implementation if you can't trust that your tables exist. If they don't exist, throw some errors instead of having bad performance. |
This PR seems to have enough reviews to be merged. |
@jonashrem there seams to be a typo in the function on line 2643
i'll get a function not found error. The function in my codebase should be
|
checking the code base, I can confirm @Ruko2010 findings. We have a regression here. |
Just asking...should something like this not be found with automated tests? The missing funktion broke my whole OpenMage instantly 😃. |
created a super quick PR to fix the regression |
it seems there was a typo in #1720, this should fix it.
That we are still talking these days about changing the RFC. This PR is proof that a solution must not be approved just because you read what it solves, but must be tested intensively. In this case the code was not complex and yet the typo was visible. It solved one problem and generated a much more serious OM malfunction. Fortunately teamwork should be appreciated. |
@addison74 the regression wasn't release to public, I don't feel like this is such a tremendous issue. I think nobody has the power to run intensive tests on anything sadly, but still the community is working extremely fine. |
issue like this could be detected by phpstan. |
I'm sorry about that. |
@tmotyl - Maybe when we approve a PR we should leave a few words there. LGTM, tested, ... When I approved a few PR's I implemented them on a test environment before and I tried to find any issues. |
it seems there was a typo in OpenMage/magento-lts#1720, this should fix it.
Description (*)
implementation of isTableExists without the use of "show table status" to gain more performance.
See magento/magento2#28516 for details
This versions comes without the DDL cache, as magento1 is not using this function as much as magento 2.
Related Pull Requests
#1712
Fixed Issues (if relevant)
/
Manual testing scenarios (*)
/
Questions or comments
/
Contribution checklist (*)