Support the ongoing development of Laravel.io →
Database Laravel Eloquent
Last updated by @duvalg 1 year ago.
0

I would use Query Builder instead of Eloquent, because unlike eloquent which makes a Model instance and then inserts, query builder writes directly to the db table

duvalg liked this reply

1
Solution

Here is a video link that explains how you can cut down your query time.

Seeding 50k DB Rows in Laravel:

It's a very short video and it will definitely help you :)

duvalg liked this reply

1
Solution selected by @duvalg

@lex Thanks for your reply, I'll look into that :)

@faisal Thx ! Can't believe I missed that one, I'm gonna watch this right now.

Thanks again for your help.

Last updated 1 year ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Gaël Duval duvalg Joined 19 Apr 2022

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.