# Probleme mit SQL\_BIG\_SELECTS Shopware 4

**URL:** <https://forum.shopware.com/t/probleme-mit-sql-big-selects-shopware-4/10084>\
**Category:** Shopware 3.5\
**Tags:** general\
**Created:** [26. November 2012 um 12:12 UTC](https://forum.shopware.com/t/probleme-mit-sql-big-selects-shopware-4/10084 "2012-11-26T12:12:44Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ShopFreelancer](https://avatars.discourse-cdn.com/v4/letter/s/fbc32d/32.png) [@ShopFreelancer](https://forum.shopware.com/u/ShopFreelancer)\
**Post date:** [26. November 2012 um 12:12 UTC](https://forum.shopware.com/t/probleme-mit-sql-big-selects-shopware-4/10084/1 "2012-11-26T12:12:44Z")

</div>

Fall: Shopware 4.0.4 (update von 3.5.6) auf Hosteurope-Server. Unter Backend -\> Marketing -\> Übersicht wird der folgende Fehler ausgeworfen: Ups! Ein Fehler ist aufgetreten! Die nachfolgenden Hinweise sollten Ihnen weiterhelfen. SQLSTATE[42000]: Syntax error or access violation: 1104 The SELECT would examine more than MAX\_JOIN\_SIZE rows; check your WHERE and use SET SQL\_BIG\_SELECTS=1 or SET SQL\_MAX\_JOIN\_SIZE=# if the SELECT is okay in Zend/Db/Statement/Pdo.php on line 234 Stack trace: #0 Zend/Db/Statement.php(300): Zend\_Db\_Statement\_Pdo-\>\_execute(Array) #1 Zend/Db/Adapter/Abstract.php(479): Zend\_Db\_Statement-\>execute(Array) #2 Zend/Db/Adapter/Pdo/Abstract.php(238): Zend\_Db\_Adapter\_Abstract-\>query(’? SELEC…’, Array) #3 Enlight/Components/Db/Adapter/Pdo/Mysql.php(75): Zend\_Db\_Adapter\_Pdo\_Abstract-\>query(’? SELEC…’, Array) #4 Shopware/Controllers/Backend/Overview.php(120): Enlight\_Components\_Db\_Adapter\_Pdo\_Mysql-\>query(’? SELEC…’, Array) #5 Enlight/Controller/Action.php(135): Shopware\_Controllers\_Backend\_Overview-\>getOrderSummaryAction() #6 Enlight/Controller/Dispatcher/Default.php(521): Enlight\_Controller\_Action-\>dispatch(‘getOrderSummary…’) #7 Enlight/Controller/Front.php(214): Enlight\_Controller\_Dispatcher\_Default-\>dispatch(Object(Enlight\_Controller\_Request\_RequestHttp), Object(Enlight\_Controller\_Response\_ResponseHttp)) #8 Shopware/Bootstrap.php(79): Enlight\_Controller\_Front-\>dispatch() #9 Enlight/Application.php(192): Shopware\_Bootstrap-\>run() #10 shopware.php(74): Enlight\_Application-\>run() #11 {main} Die Anpassung in der Application.php aus dem Wiki hat nichts gebracht, ich habe erstmal den primitiven Quickfix Shopware()-\>Db()-\>query(“SET SESSION SQL\_BIG\_SELECTS=1;”); in Controllers/Backend/Overview.php untergebracht. Anyone else?

---

<div class="post-metadata">

**Author:** ![baschti](https://avatars.discourse-cdn.com/v4/letter/b/77aa72/32.png) [@baschti](https://forum.shopware.com/u/baschti)\
**Post date:** [19. April 2013 um 03:18 UTC](https://forum.shopware.com/t/probleme-mit-sql-big-selects-shopware-4/10084/2 "2013-04-19T03:18:35Z")

</div>

Leider haben wir genau das gleiche Problem auf Hosteurope mit dem Anzeigen der Bestellungen. Gibt es eine Lösung dafür?

---

<div class="post-metadata">

**Author:** ![OKA](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/oka/32/8114_2.png) [@OKA](https://forum.shopware.com/u/OKA)\
**Post date:** [7. Mai 2013 um 10:14 UTC](https://forum.shopware.com/t/probleme-mit-sql-big-selects-shopware-4/10084/3 "2013-05-07T10:14:02Z")

</div>

Hier auch, könnte Shopware sich mal dazu äußern? 😉

---

<div class="post-metadata">

**Author:** ![baschti](https://avatars.discourse-cdn.com/v4/letter/b/77aa72/32.png) [@baschti](https://forum.shopware.com/u/baschti)\
**Post date:** [6. Juni 2013 um 20:51 UTC](https://forum.shopware.com/t/probleme-mit-sql-big-selects-shopware-4/10084/4 "2013-06-06T20:51:19Z")

</div>

\*schieb\*

---

<div class="post-metadata">

**Author:** ![zweigelb](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/zweigelb/32/13015_2.png) [@zweigelb](https://forum.shopware.com/u/zweigelb)\
**Post date:** [26. Februar 2014 um 11:25 UTC](https://forum.shopware.com/t/probleme-mit-sql-big-selects-shopware-4/10084/5 "2014-02-26T11:25:34Z")

</div>

Und ich schiebe auch mal mit

---

<div class="post-metadata">

**Author:** ![Patrick\_Schucker](https://avatars.discourse-cdn.com/v4/letter/p/a5b964/32.png) [@Patrick\_Schucker](https://forum.shopware.com/u/Patrick_Schucker)\
**Post date:** [26. Februar 2014 um 15:30 UTC](https://forum.shopware.com/t/probleme-mit-sql-big-selects-shopware-4/10084/6 "2014-02-26T15:30:03Z")

</div>

Hallo, es wurde jetzt hier fast zwei Jahre alter Thread wieder ausgegraben. Ich glaube kaum, dass du die gleichen Probleme hast wie der Thread Ersteller. Falls doch, solltest du deine Shopware 4.0.4 schleunigst updaten. Wir brauchen also mehr Infos von dir. Wann tritt dieser Fehler wo auf? Welche Shopware Version (installiere die aktuellste)? Hast du besondere Fremdanbieter Plugins im Einsatz? Gruß Patrick Schücker

---

<div class="post-metadata">

**Author:** ![JoernBernd](https://avatars.discourse-cdn.com/v4/letter/j/5e9695/32.png) [@JoernBernd](https://forum.shopware.com/u/JoernBernd)\
**Post date:** [24. Juli 2014 um 11:21 UTC](https://forum.shopware.com/t/probleme-mit-sql-big-selects-shopware-4/10084/7 "2014-07-24T11:21:22Z")

</div>

Ich klinke mich hier mal ein, weil ich das gleiche Problem habe. Klickt man im Shopware Backend (Version 4.2.3) auf Marketing -\> Auswertungen -\> Übersicht kommt es zu dem Fehler: [quote]Ups! Ein Fehler ist aufgetreten! Die nachfolgenden Hinweise sollten Ihnen weiterhelfen. SQLSTATE[42000]: Syntax error or access violation: 1104 The SELECT would examine more than MAX\_JOIN\_SIZE rows; check your WHERE and use SET SQL\_BIG\_SELECTS=1 or SET MAX\_JOIN\_SIZE=# if the SELECT is okay in Zend/Db/Statement/Pdo.php on line 234 Stack trace: #0 Zend/Db/Statement.php(303): Zend\_Db\_Statement\_Pdo-\>\_execute(Array) #1 Zend/Db/Adapter/Abstract.php(480): Zend\_Db\_Statement-\>execute(Array) #2 Zend/Db/Adapter/Pdo/Abstract.php(238): Zend\_Db\_Adapter\_Abstract-\>query(’? SELEC…’, Array) #3 Enlight/Components/Db/Adapter/Pdo/Mysql.php(75): Zend\_Db\_Adapter\_Pdo\_Abstract-\>query(’? SELEC…’, Array) #4 Shopware/Controllers/Backend/Overview.php(110): Enlight\_Components\_Db\_Adapter\_Pdo\_Mysql-\>query(’? SELEC…’, Array) #5 Enlight/Controller/Action.php(159): Shopware\_Controllers\_Backend\_Overview-\>getOrderSummaryAction() #6 Enlight/Controller/Dispatcher/Default.php(528): Enlight\_Controller\_Action-\>dispatch(‘getOrderSummary…’) #7 Enlight/Controller/Front.php(228): Enlight\_Controller\_Dispatcher\_Default-\>dispatch(Object(Enlight\_Controller\_Request\_RequestHttp), Object(Enlight\_Controller\_Response\_ResponseHttp)) #8 Shopware/Kernel.php(141): Enlight\_Controller\_Front-\>dispatch() #9 vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpCache/HttpCache.php(473): Shopware\Kernel-\>handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #10 Shopware/Components/HttpCache/AppCache.php(256): Symfony\Component\HttpKernel\HttpCache\HttpCache-\>forward(Object(Symfony\Component\HttpFoundation\Request), true, NULL) #11 vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpCache/HttpCache.php(244): Shopware\Components\HttpCache\AppCache-\>forward(Object(Symfony\Component\HttpFoundation\Request), true) #12 Shopware/Components/HttpCache/AppCache.php(102): Symfony\Component\HttpKernel\HttpCache\HttpCache-\>pass(Object(Symfony\Component\HttpFoundation\Request), true) #13 shopware.php(91): Shopware\Components\HttpCache\AppCache-\>handle(Object(Symfony\Component\HttpFoundation\Request)) #14 {main}[/quote] Beim Server handelt es sich um einen Virtual Server Managed 5.0 L von Host Europe. Es wurden keine besonderen Fremdanbieter Plugins installiert.

---

<div class="post-metadata">

**Author:** ![Patrick\_Schucker](https://avatars.discourse-cdn.com/v4/letter/p/a5b964/32.png) [@Patrick\_Schucker](https://forum.shopware.com/u/Patrick_Schucker)\
**Post date:** [25. Juli 2014 um 17:05 UTC](https://forum.shopware.com/t/probleme-mit-sql-big-selects-shopware-4/10084/8 "2014-07-25T17:05:38Z")

</div>

Hallo, probiere mal folgende Code in deiner config.php. ` 'db' =\> array( 'username' =\> 'USERNAME', 'password' =\> 'PASSWORD', 'dbname' =\> 'DATABASE', 'host' =\> 'localhost', 'charset' =\> null, 'driver\_options' =\> array( PDO::MYSQL\_ATTR\_INIT\_COMMAND =\> "SET NAMES 'utf8'; SET SESSION SQL\_BIG\_SELECTS=1" ), ) `
