mercredi 2 mai 2018

Laravel queue create

Firstly, thanks in advance for any help given, I really appreciate it.

I'm at the beginning of creating a new website for a client of mine, they have the following models:

Property, Office and Team.

Each Property and Team can be assigned 1 Office.

I have the relationships set up, as well as the models and migrations etc.

The way we import these properties is via a SOAP WSDL feed, and at the moment I simply have a controller that runs through whats in the WSDL file, what's in the DB, and updates/creates Properties based on the updated_time.

My problem is that, because there could be up to 1000 properties, and the "create" process can be quite extensive (saving and cropping Property images etc), the script can take quite a long time to complete.

Is this something I could turn into a Queue/Job type situation? If so, how would I go about doing this? If not, what do?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire