nnjeim / world

A Laravel package which provides a list of the countries, states, cities, currencies, timezones and languages.
MIT License
737 stars 104 forks source link

Too long to execute on Laravel Vapor #74

Closed Kixell-NicolasJardillier closed 7 months ago

Kixell-NicolasJardillier commented 7 months ago

Hi, The time to seed the db is too long for laravel vapor Maybe split seed DB with jobs ? I do not know the exact way to achieve it, but it is not possible on small architecture to seed the db on laravel vapor Best regards

nnjeim commented 7 months ago

Hi @Kixell-NicolasJardillier I have no experience with Vapor. However you might consider 2 options:

i am pretty sure that the limited performance is due to the available resources on Vapor when seeding.

cheers,

Kixell-NicolasJardillier commented 7 months ago

Hi @nnjeim yes it works by seeding locally and import The limit comes from the time to execute the seed on lambda AWS functions not vapor directly

best regards