# SW 6.4 - API Product + Varianten erstellen - Dauer über 7 Minuten

**URL:** <https://forum.shopware.com/t/sw-6-4-api-product-varianten-erstellen-dauer-ueber-7-minuten/89168>\
**Category:** Shopware 6 (German)\
**Created:** [15. Juli 2021 um 11:34 UTC](https://forum.shopware.com/t/sw-6-4-api-product-varianten-erstellen-dauer-ueber-7-minuten/89168 "2021-07-15T11:34:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![futureplex](https://avatars.discourse-cdn.com/v4/letter/f/7cd45c/32.png) [@futureplex](https://forum.shopware.com/u/futureplex)\
**Post date:** [15. Juli 2021 um 11:34 UTC](https://forum.shopware.com/t/sw-6-4-api-product-varianten-erstellen-dauer-ueber-7-minuten/89168/1 "2021-07-15T11:34:08Z")

</div>

Hallo,  
wir erstellen per API ein Produkt. Das Problem ist das SW extrem langsam ist bei der API

```auto
[patch Product (call)] => 28.265811 Sek
            [patch Variant (call)] => Array
                (
                    [109085] => 38.840133 Sek
                    [109086] => 42.530029 Sek
                    [109087] => 41.840341 Sek
                    [109088] => 44.899696 Sek
                    [109080] => 49.32801 Sek
                    [109081] => 47.704466 Sek
                    [109082] => 50.868378 Sek
                    [109083] => 46.529726 Sek
                    [109084] => 46.758221 Sek
                )           
            [total_sub] => 440.126419 Sek
            [upsert Product total] => 442.269519 Sek

```

Für das Produkt ~28 Sek. und dann für jede Variante nochmal 38-50 Sek.  
Insg. 442 Sekunden für ein Produkt mit ein paar Eigenschaften, Bildern.

Aber das ist doch nicht normal oder?  
Hat hier einer idee wodran es liegen kann?

---

<div class="post-metadata">

**Author:** ![dominikmank](https://avatars.discourse-cdn.com/v4/letter/d/c77e96/32.png) [@dominikmank](https://forum.shopware.com/u/dominikmank)\
**Post date:** [15. Juli 2021 um 13:43 UTC](https://forum.shopware.com/t/sw-6-4-api-product-varianten-erstellen-dauer-ueber-7-minuten/89168/2 "2021-07-15T13:43:07Z")

</div>

Ich glaube das kann keiner auf dieser Basis beantworten.

Ich rate dir das Ganze mit [https://blackfire.io/](https://blackfire.io/) oder [https://tideways.com/](https://tideways.com/) mal zu überprüfen damit du das rausfindest.

Wir haben zumindest viele verschiedene Importe, auch mit Varianten und co, und das dauert definitiv nicht so lange 😉
