Performance issues #52621
Replies: 2 comments
-
That being said, I use |
Beta Was this translation helpful? Give feedback.
-
If it's just a simple way to determine whether a table exists, and whether there is a more lightweight function? (I've written a function myself as a substitute for it) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Laravel Version
11.20.0
PHP Version
8.3.10
Database Driver & Version
MySQL5.7
Description
There are performance issues when using Schema:: hasTable(), which can generate slow SQL and cause a surge in database load (see performance report in the following figure)
Steps To Reproduce
Schema:: hasTable()
Beta Was this translation helpful? Give feedback.
All reactions