# Import von Bestellungen mit Shop-Migration / Gambio

**URL:** <https://forum.shopware.com/t/import-von-bestellungen-mit-shop-migration-gambio/25797>\
**Category:** Shopware 3.5\
**Tags:** administration\
**Created:** [24. März 2015 um 00:26 UTC](https://forum.shopware.com/t/import-von-bestellungen-mit-shop-migration-gambio/25797 "2015-03-24T00:26:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AvL](https://avatars.discourse-cdn.com/v4/letter/a/c0e974/32.png) [@AvL](https://forum.shopware.com/u/AvL)\
**Post date:** [24. März 2015 um 00:26 UTC](https://forum.shopware.com/t/import-von-bestellungen-mit-shop-migration-gambio/25797/1 "2015-03-24T00:26:39Z")

</div>

Hallo, bisher erst einmal vielen Dank für das Kostenlose Plugin “Shop-Migration”. Dies hat mir jetzt bei einem Umzug von Gambio auf Shopware sehr geholfen und sehr viel Arbeit erspart. Alle Imports laufen soweit bestens, allerdings stoße ich bei dem folgenden Code/Select auf das Problem, dass sich nach 10-15 Minuten nichts mehr tut. Shop-Migration bleibt bei dem SELECT einfach hängen. Informationen zur Dimension der Datenmenge: Kunden: 25800 Artikel: 90 Bestellungen: 46700 Bestellpositionen (Artikel): 146800 ` # Plugins/Community/Backend/SwagMigration/Components/Migration/Import/Profile/XtCommerce.php ` Die Methode: ` public function getOrderDetailSelect()... ` erzeugt folgenden SELECT: ` SELECT products.`orders_id` as orderID, `products_id` as productID, `products_model` as article\_ordernumber, IFNULL(CONCAT( products.products\_name, ' ', GROUP\_CONCAT(attributes.products\_options\_values SEPARATOR ', '), ' (', GROUP\_CONCAT(attributes.products\_options SEPARATOR ', '), ')' ), products.products\_name) as name, `products_price` as price, `products_quantity` as quantity FROM orders\_products products -- Join attributes in order to name the article by its attribute LEFT JOIN orders\_products\_attributes attributes ON attributes.orders\_products\_id=products.orders\_products\_id GROUP BY (products.orders\_products\_id) ` Nun noch meine Frage: Wie kann ich die Datenbank (Gambio) optimieren bzw. die MySQL-Datenbank oder kann ich das Selektieren durch Änderungen am Code selbst “LIMITIEREN”? Vorab schon vielen Dank PS: Ich muss dazu sagen, dass dieser SELECT auch in PHPMyAdmin nichts tut. Ich versuche es gleich mal direkt in der MySQL-Console.

---

<div class="post-metadata">

**Author:** ![AvL](https://avatars.discourse-cdn.com/v4/letter/a/c0e974/32.png) [@AvL](https://forum.shopware.com/u/AvL)\
**Post date:** [24. März 2015 um 01:58 UTC](https://forum.shopware.com/t/import-von-bestellungen-mit-shop-migration-gambio/25797/2 "2015-03-24T01:58:48Z")

</div>

Das Problem wurde gelöst. ` alter table orders\_products\_attributes add index(orders\_products\_id); ` 🙂

---

<div class="post-metadata">

**Author:** ![freetodo](https://avatars.discourse-cdn.com/v4/letter/f/7ab992/32.png) [@freetodo](https://forum.shopware.com/u/freetodo)\
**Post date:** [8. September 2015 um 23:29 UTC](https://forum.shopware.com/t/import-von-bestellungen-mit-shop-migration-gambio/25797/3 "2015-09-08T23:29:40Z")

</div>

Hallo, ich habe hier eine Lösung gesehen, aber wo muss die Zeile eingetragen werden? Bei mir bleibt die Migration immer bei der Orderliste stehen. ;-(
