Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Caprico13768yππΌππΌππΌππΌππΌππΌππΌππΌππΌππΌππΌππΌππΌππΌ
-
Caprico13768y@jirehstudios I've only been working in it for about 3 months so I'm still learning. But. Savage man. Savage
-
Caprico13768yNo I have knowledge and have built migrations. my question was more of why does this method exist. And as @chasb96 explained it I understand why and how it's used.
-
frankg3178yIt's also useful for doing bulk inserts (1+ million records) where foreign key constraint checking can slow things down.
-
Yeah disableing foreign keys for a period of time (for migration or huge bulk inserts) will save you alot of headaches. Most databases allow alter statements to disable keys for it makes sense for your framework to simple provide a wrapper to provide the same functionality. When I'm building a wrapper around something, I also try to preserve and expose as much of the functionality as possible.
I laughed so hard when I saw this method for laravel 5.3. Why does this exist!!! ππππππ
undefined
laravel what the fuck