Body: <p>I have more than 150k products on craft commerce, and i need to do some changes in the URL format, but when i click save, the server returns a 502 error.</p>
  <p>I think that is because craft is trying yo re-generate every url in the 150k products.  do you have any idea  how to resolve this issue?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-03-16T11:17:41.357Z
Comments.Text: When does the 502 (bad gateway) error arisen (immediately/after x seconds) ? Do you get a chance to look at the job queue in the control panel before the error happens?
  
  I have done url schema changes with a basic craft installation with about 60k entries. Changeing the urls was correctly done using the job queue. So the "problem" was rather how long it took the server to complete all jobs and not the webserver being "overloaded".
  
  Jalens Queue Manager plugin might give you more insights - provided the task gets deployed to the queue at all: https://plugins.craftcms.com/queue-manager
Comments.UserDisplayName: MisterMike
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-03-17T06:19:44.777Z
Comments.Text: The error happens after 30-60 seconds, and i dont have pending jobs in queue
Comments.UserDisplayName: juanjosezg
Tags: <craft3><plugin-craftcommerce><plugin-craftcommerce2>
Title: Changing URL format in craft commerce products error 502
ThreadText: # Changing URL format in craft commerce products error 502
  
  (Asked by: username_0 on 2021-03-12)
  
  I have more than 150k products on craft commerce, and i need to do some changes in the URL format, but when i click save, the server returns a 502 error.
  
  I think that is because craft is trying yo re-generate every url in the 150k products. do you have any idea how to resolve this issue?
  
  **Tags:** craft3, plugin-craftcommerce, plugin-craftcommerce2
  
  > **Comments:**
  > **username_1**: When does the 502 (bad gateway) error arisen (immediately/after x seconds) ? Do you get a chance to look at the job queue in the control panel before the error happens?  I have done url schema changes with a basic craft installation with about 60k entries. Changeing the urls was correctly done using the job queue. So the "problem" was rather how long it took the server to complete all jobs and not the webserver being "overloaded".  Jalens Queue Manager plugin might give you more insights - provided the task gets deployed to the queue at all: https://plugins.craftcms.com/queue-manager  
  > **username_0**: The error happens after 30-60 seconds, and i dont have pending jobs in queue  
  
  ---
  
  ## 0 answers
  
  