You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently import on a production App around 700K records via Excel Import. I use Queues and chuncks. The import is becoming slower and slower every 10k I import. From the initial 24s we are now around 150s at 120K records. The import code is quite simple.
`
class ProductsImport implements ShouldQueue, ToModel, WithChunkReading, WithHeadingRow
{
public function chunkSize(): int
{
return config('bee-too.excel_import_chunk_size');
}
On the Product model creation raise an event that populate a couple of other tables, but without any searching on the database they are simple insert. Every insert update also the index on Meilisearch.
I'm trying to troubleshoot the issue but I'm run out of ideas. Why it become more and more slower? Any suggestion?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi there,
I'm currently import on a production App around 700K records via Excel Import. I use Queues and chuncks. The import is becoming slower and slower every 10k I import. From the initial 24s we are now around 150s at 120K records. The import code is quite simple.
`
class ProductsImport implements ShouldQueue, ToModel, WithChunkReading, WithHeadingRow
{
public function chunkSize(): int
{
return config('bee-too.excel_import_chunk_size');
}
`
On the Product model creation raise an event that populate a couple of other tables, but without any searching on the database they are simple insert. Every insert update also the index on Meilisearch.
I'm trying to troubleshoot the issue but I'm run out of ideas. Why it become more and more slower? Any suggestion?
Guido Bertolino
Beta Was this translation helpful? Give feedback.
All reactions