Support the ongoing development of Laravel.io →
Database Laravel Eloquent
Last updated by @duvalg 10 months 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

1

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 :)

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 11 months ago.
0

Sign in to participate in this thread!

LaraJobs

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.

© 2023 Laravel.io - All rights reserved.