woocommerce / woocommerce-android

WooCommerce Android app
https://www.woocommerce.com/mobile
GNU General Public License v2.0
276 stars 135 forks source link

[Product AI] Make API requests in parallel when saving the product as draft #12664

Open hichamboushaba opened 1 week ago

hichamboushaba commented 1 week ago

When saving the product as draft, we execute 3 preparation requests to get the IDs of the resources before being able to use them:

  1. Product Tags
  2. Product Categories
  3. Upload the local image.

This creates a long delay, we can reduce the delay by making the requests in parallel.

Internal discussion: pdfdoF-5pQ-p2#comment-6480
dangermattic commented 1 week ago

Thanks for reporting! 👍