# Die Suche nach Performance

**URL:** <https://forum.oxid-esales.com/t/die-suche-nach-performance/93711>\
**Category:** Deutsches Forum\
**Tags:** development\
**Created:** [June 22, 2018, 8:06am UTC](https://forum.oxid-esales.com/t/die-suche-nach-performance/93711 "2018-06-22T08:06:24Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Graschi](https://forum.oxid-esales.com/letter_avatar_proxy/v4/letter/g/3e96dc/32.png) [@Graschi](https://forum.oxid-esales.com/u/Graschi)\
**Post date:** [June 22, 2018, 8:06am UTC](https://forum.oxid-esales.com/t/die-suche-nach-performance/93711/1 "2018-06-22T08:06:24Z")

</div>

Hallo zusammen,

ich habe mich hier durch die Performance-Optimierungsideen durchgelesen. Dadurch habe ich angefangen meinen Shop genauer zu untersuchen.  
Das Problem: Der Aufruf eines konkreten Artikels dauert fast 10 Sekunden.

Das Debuglevel habe ich auf “-1” gesetzt und erhalte unten stehende Ausgaben. Besonders auffällig erscheinen mir nur folgende beiden:

```
cl=oxwarticledetails(show/hide)
Memory usage: 6.111 MB (peak: 146.438 MB)
System memory usage: 27 MB (peak: 147 MB)
Executed: 2018-06-22 09:46:42
Timestamp: 1529653602.8083
Execution time:3.6349

cl=details(show/hide)
Memory usage: 7.898 MB (peak: 146.438 MB)
System memory usage: 27 MB (peak: 147 MB)
Executed: 2018-06-22 09:46:42
Timestamp: 1529653602.8303
Execution time:7.2862
-------------------------

```

Insbesondere die Ausführung mit über 7 Sekunden. Was wird da konkret geladen?  
Mir ist bewusst, dass ein Shopmit knapp 1Mio Artikeln nicht gerade schnell ist, wenn die Hardware dahinter nicht ausreichend dimensioniert ist.

Die Datenbank läuft daher auf einer SSD. Ich denke eine gute IO ist für eine große DB wichtiger als der Speicherplatz.  
Sonstige Serverdaten:  
OS: Ubuntu 14.04.5 LTS (Plesk)  
Dedicated Server  
Inten Haswell I5-4590  
32GB DDR3 RAM  
2x250GB SSG  
Anbindung: 1Gbit/s

Die oxarticles Tabelle ist aktuell 1,8GB groß  
Die Tabellenstruktur und das Tabellenformat ist so wie bei der Installation. Die DB hat derzeit insgesamt eine Größe von 2,2GB

Was mich wundert: Auf der Shopstartseite werden die Artikel “Frisch eingetroffen” angezeigt. Die Startseite lädt ruck zuck.  
Wenn ich eine Suche mit über 500 Treffern ausführe bin ich genauso schnell wie beim Laden eines einzigen Artikels.  
Da hier die gesamte Artikeltabelle durchsucht werden muss kann ich mir nicht vorstellen, dass es an der Datenbank selbst liegt.  
Wenn ich gezielt nach einem Artikel aus der Tabelle suche und den Join auf die anderen Tabellen mache sollte das doch eigentlich schneller gehen als ein Full-Scan der oxarticles Tabelle.

Habt ihr eine Idee was hier die hohe Laufzeit verursacht?

Viele Grüße  
Christopher

```
cl=oxwcookienote(show/hide)
Memory usage: 6.262 MB (peak: 146.438 MB)
System memory usage: 27 MB (peak: 147 MB)
Executed: 2018-06-22 09:46:42
Timestamp: 1529653602.8101
Execution time:0.0011
----------------------------------------------------------
Profile process: 3.63575s	325217.15% 3	*	1.21192s
Profile oxNew: 0.01922s	1719.22% 103	*	0.00019s
Profile oxAutoload: 0.00694s	620.99% 89	*	8.0E-5s
Profile buildTree: 0.00351s	314.33% 1	*	0.00351s
Profile articleAssign: 0.001s	89.25% 3	*	0.00033s
Profile smarty_function_oxmultilang: 0.00068s	60.95% 25	*	3.0E-5s
Profile seoencoder_loadFromCache: 0.00052s	46.43% 12	*	4.0E-5s
Profile _getAmountPrice: 0.00049s	44.19% 1	*	0.00049s
Profile _getLangTranslationArray: 0.00043s	38.45% 33	*	1.0E-5s
Profile loadinglists: 0.00031s	27.98% 2	*	0.00016s
Profile executeMaintenanceTasks: 0.00027s	24.06% 1	*	0.00027s
Profile getArticleUri: 0.00021s	19.15% 4	*	5.0E-5s
Profile getCategoryUri: 0.00016s	14.05% 2	*	8.0E-5s
Profile _assignPriceInternal: 7.0E-5s	6.53% 1	*	7.0E-5s
Profile oxviewconfig::getViewConfigParam: 3.0E-5s	2.6% 19	*	0s
Profile isSearchEngine: 2.0E-5s	1.34% 1	*	2.0E-5s
Profile fround: 1.0E-5s	1.24% 9	*	0s
Profile articleAssignParentInternal: 1.0E-5s	0.9% 3	*	0s
Profile oxviewconfig::setViewConfigParam: 1.0E-5s	0.7% 10	*	0s
Profile _applyVAT: 1.0E-5s	0.62% 2	*	0s

cl=oxwlanguagelist(show/hide)
Memory usage: 6.395 MB (peak: 146.438 MB)
System memory usage: 27 MB (peak: 147 MB)
Executed: 2018-06-22 09:46:42
Timestamp: 1529653602.8123
Execution time:0.0013
----------------------------------------------------------
Profile process: 3.63706s	276157.17% 4	*	0.90926s
Profile oxNew: 0.01964s	1491.53% 106	*	0.00019s
Profile oxAutoload: 0.00702s	533.11% 90	*	8.0E-5s
Profile buildTree: 0.00351s	266.82% 1	*	0.00351s
Profile articleAssign: 0.001s	75.76% 3	*	0.00033s
Profile smarty_function_oxmultilang: 0.00068s	51.74% 25	*	3.0E-5s
Profile seoencoder_loadFromCache: 0.00052s	39.41% 12	*	4.0E-5s
Profile _getAmountPrice: 0.00049s	37.51% 1	*	0.00049s
Profile _getLangTranslationArray: 0.00044s	33.09% 34	*	1.0E-5s
Profile loadinglists: 0.00031s	23.75% 2	*	0.00016s
Profile executeMaintenanceTasks: 0.00027s	20.42% 1	*	0.00027s
Profile getArticleUri: 0.00021s	16.26% 4	*	5.0E-5s
Profile getCategoryUri: 0.00016s	11.93% 2	*	8.0E-5s
Profile _assignPriceInternal: 7.0E-5s	5.54% 1	*	7.0E-5s
Profile oxviewconfig::setViewConfigParam: 5.0E-5s	3.87% 16	*	0s
Profile oxviewconfig::getViewConfigParam: 4.0E-5s	2.91% 24	*	0s
Profile isSearchEngine: 2.0E-5s	1.14% 1	*	2.0E-5s
Profile fround: 1.0E-5s	1.05% 9	*	0s
Profile articleAssignParentInternal: 1.0E-5s	0.76% 3	*	0s
Profile _applyVAT: 1.0E-5s	0.52% 2	*	0s

cl=oxwcurrencylist(show/hide)
Memory usage: 6.533 MB (peak: 146.438 MB)
System memory usage: 27 MB (peak: 147 MB)
Executed: 2018-06-22 09:46:42
Timestamp: 1529653602.8134
Execution time:0.001
----------------------------------------------------------
Profile process: 3.63808s	351513.68% 5	*	0.72762s
Profile oxNew: 0.01982s	1914.88% 109	*	0.00018s
Profile oxAutoload: 0.00706s	681.87% 91	*	8.0E-5s
Profile buildTree: 0.00351s	339.53% 1	*	0.00351s
Profile articleAssign: 0.001s	96.41% 3	*	0.00033s
Profile smarty_function_oxmultilang: 0.00068s	65.84% 25	*	3.0E-5s
Profile seoencoder_loadFromCache: 0.00052s	50.15% 12	*	4.0E-5s
Profile _getAmountPrice: 0.00049s	47.73% 1	*	0.00049s
Profile _getLangTranslationArray: 0.00044s	42.78% 35	*	1.0E-5s
Profile loadinglists: 0.00031s	30.22% 2	*	0.00016s
Profile executeMaintenanceTasks: 0.00027s	25.98% 1	*	0.00027s
Profile getArticleUri: 0.00021s	20.69% 4	*	5.0E-5s
Profile getCategoryUri: 0.00016s	15.18% 2	*	8.0E-5s
Profile _assignPriceInternal: 7.0E-5s	7.05% 1	*	7.0E-5s
Profile oxviewconfig::setViewConfigParam: 5.0E-5s	5.11% 18	*	0s
Profile oxviewconfig::getViewConfigParam: 4.0E-5s	3.8% 25	*	0s
Profile isSearchEngine: 2.0E-5s	1.45% 1	*	2.0E-5s
Profile fround: 1.0E-5s	1.34% 9	*	0s
Profile articleAssignParentInternal: 1.0E-5s	0.97% 3	*	0s
Profile _applyVAT: 1.0E-5s	0.67% 2	*	0s

cl=oxwservicemenu(show/hide)
Memory usage: 6.797 MB (peak: 146.438 MB)
System memory usage: 27 MB (peak: 147 MB)
Executed: 2018-06-22 09:46:42
Timestamp: 1529653602.8155
Execution time:0.0019
----------------------------------------------------------
Profile process: 3.63996s	191773.85% 6	*	0.60666s
Profile oxNew: 0.02026s	1067.45% 114	*	0.00018s
Profile oxAutoload: 0.00719s	378.82% 93	*	8.0E-5s
Profile buildTree: 0.00351s	185.14% 1	*	0.00351s
Profile articleAssign: 0.001s	52.57% 3	*	0.00033s
Profile smarty_function_oxmultilang: 0.00082s	43.14% 38	*	2.0E-5s
Profile seoencoder_loadFromCache: 0.00053s	27.9% 16	*	3.0E-5s
Profile _getLangTranslationArray: 0.00051s	26.87% 49	*	1.0E-5s
Profile _getAmountPrice: 0.00049s	26.03% 1	*	0.00049s
Profile loadinglists: 0.00031s	16.48% 2	*	0.00016s
Profile executeMaintenanceTasks: 0.00027s	14.17% 1	*	0.00027s
Profile getArticleUri: 0.00021s	11.28% 4	*	5.0E-5s
Profile getCategoryUri: 0.00016s	8.28% 2	*	8.0E-5s
Profile _assignPriceInternal: 7.0E-5s	3.84% 1	*	7.0E-5s
Profile oxviewconfig::setViewConfigParam: 6.0E-5s	3.12% 24	*	0s
Profile oxviewconfig::getViewConfigParam: 5.0E-5s	2.52% 35	*	0s
Profile isSearchEngine: 2.0E-5s	0.79% 1	*	2.0E-5s
Profile fround: 1.0E-5s	0.73% 9	*	0s
Profile articleAssignParentInternal: 1.0E-5s	0.53% 3	*	0s
Profile _applyVAT: 1.0E-5s	0.36% 2	*	0s

cl=oxwminibasket(show/hide)
Memory usage: 6.933 MB (peak: 146.438 MB)
System memory usage: 27 MB (peak: 147 MB)
Executed: 2018-06-22 09:46:42
Timestamp: 1529653602.8166
Execution time:0.0011
----------------------------------------------------------
Profile process: 3.64103s	338390.85% 7	*	0.52015s
Profile oxNew: 0.02042s	1897.7% 117	*	0.00017s
Profile oxAutoload: 0.00723s	671.77% 94	*	8.0E-5s
Profile buildTree: 0.00351s	326.59% 1	*	0.00351s
Profile articleAssign: 0.001s	92.73% 3	*	0.00033s
Profile smarty_function_oxmultilang: 0.00083s	77.49% 39	*	2.0E-5s
Profile seoencoder_loadFromCache: 0.00053s	49.5% 17	*	3.0E-5s
Profile _getLangTranslationArray: 0.00052s	48.53% 51	*	1.0E-5s
Profile _getAmountPrice: 0.00049s	45.91% 1	*	0.00049s
Profile loadinglists: 0.00031s	29.07% 2	*	0.00016s
Profile executeMaintenanceTasks: 0.00027s	24.99% 1	*	0.00027s
Profile getArticleUri: 0.00021s	19.9% 4	*	5.0E-5s
Profile getCategoryUri: 0.00016s	14.6% 2	*	8.0E-5s
Profile _assignPriceInternal: 7.0E-5s	6.78% 1	*	7.0E-5s
Profile oxviewconfig::setViewConfigParam: 6.0E-5s	5.58% 26	*	0s
Profile oxviewconfig::getViewConfigParam: 5.0E-5s	4.56% 36	*	0s
Profile isSearchEngine: 2.0E-5s	1.4% 1	*	2.0E-5s
Profile fround: 1.0E-5s	1.29% 9	*	0s
Profile articleAssignParentInternal: 1.0E-5s	0.93% 3	*	0s
Profile _applyVAT: 1.0E-5s	0.64% 2	*	0s

cl=oxwcategorytree(show/hide)
Memory usage: 7.124 MB (peak: 146.438 MB)
System memory usage: 27 MB (peak: 147 MB)
Executed: 2018-06-22 09:46:42
Timestamp: 1529653602.8188
Execution time:0.0019
----------------------------------------------------------
Profile process: 3.64293s	190115.22% 8	*	0.45537s
Profile oxNew: 0.02058s	1073.8% 120	*	0.00017s
Profile oxAutoload: 0.00727s	379.15% 95	*	8.0E-5s
Profile buildTree: 0.00351s	183.39% 1	*	0.00351s
Profile articleAssign: 0.001s	52.07% 3	*	0.00033s
Profile smarty_function_oxmultilang: 0.00088s	45.91% 43	*	2.0E-5s
Profile seoencoder_loadFromCache: 0.00057s	29.95% 35	*	2.0E-5s
Profile _getLangTranslationArray: 0.00055s	28.65% 56	*	1.0E-5s
Profile _getAmountPrice: 0.00049s	25.78% 1	*	0.00049s
Profile getCategoryUri: 0.00043s	22.47% 20	*	2.0E-5s
Profile loadinglists: 0.00031s	16.32% 2	*	0.00016s
Profile executeMaintenanceTasks: 0.00027s	14.04% 1	*	0.00027s
Profile getArticleUri: 0.00021s	11.17% 4	*	5.0E-5s
Profile _assignPriceInternal: 7.0E-5s	3.81% 1	*	7.0E-5s
Profile oxviewconfig::setViewConfigParam: 6.0E-5s	3.25% 31	*	0s
Profile oxviewconfig::getViewConfigParam: 5.0E-5s	2.85% 41	*	0s
Profile isSearchEngine: 2.0E-5s	0.78% 1	*	2.0E-5s
Profile fround: 1.0E-5s	0.72% 9	*	0s
Profile articleAssignParentInternal: 1.0E-5s	0.52% 3	*	0s
Profile _applyVAT: 1.0E-5s	0.36% 2	*	0s

cl=oxwarticledetails(show/hide)
Memory usage: 6.111 MB (peak: 146.438 MB)
System memory usage: 27 MB (peak: 147 MB)
Executed: 2018-06-22 09:46:42
Timestamp: 1529653602.8083
Execution time:3.6349
----------------------------------------------------------
Profile process: 3.63465s	99.99% 2	*	1.81733s
Profile oxNew: 0.01886s	0.52% 100	*	0.00019s
Profile oxAutoload: 0.00686s	0.19% 88	*	8.0E-5s
Profile buildTree: 0.00351s	0.1% 1	*	0.00351s
Profile articleAssign: 0.001s	0.03% 3	*	0.00033s
Profile smarty_function_oxmultilang: 0.00068s	0.02% 25	*	3.0E-5s
Profile seoencoder_loadFromCache: 0.00052s	0.01% 12	*	4.0E-5s
Profile _getAmountPrice: 0.00049s	0.01% 1	*	0.00049s
Profile _getLangTranslationArray: 0.00041s	0.01% 32	*	1.0E-5s
Profile loadinglists: 0.00031s	0.01% 2	*	0.00016s
Profile executeMaintenanceTasks: 0.00027s	0.01% 1	*	0.00027s
Profile getArticleUri: 0.00021s	0.01% 4	*	5.0E-5s
Profile getCategoryUri: 0.00016s	0% 2	*	8.0E-5s
Profile _assignPriceInternal: 7.0E-5s	0% 1	*	7.0E-5s
Profile oxviewconfig::getViewConfigParam: 3.0E-5s	0% 19	*	0s
Profile isSearchEngine: 2.0E-5s	0% 1	*	2.0E-5s
Profile fround: 1.0E-5s	0% 9	*	0s
Profile articleAssignParentInternal: 1.0E-5s	0% 3	*	0s
Profile _applyVAT: 1.0E-5s	0% 2	*	0s
Profile oxviewconfig::setViewConfigParam: 1.0E-5s	0% 9	*	0s

cl=oxwservicelist(show/hide)
Memory usage: 7.318 MB (peak: 146.438 MB)
System memory usage: 27 MB (peak: 147 MB)
Executed: 2018-06-22 09:46:42
Timestamp: 1529653602.821
Execution time:0.0015
----------------------------------------------------------
Profile process: 3.64447s	235604.22% 9	*	0.40494s
Profile oxNew: 0.02092s	1352.4% 125	*	0.00017s
Profile oxAutoload: 0.00739s	477.48% 97	*	8.0E-5s
Profile buildTree: 0.00351s	227.17% 1	*	0.00351s
Profile articleAssign: 0.001s	64.5% 3	*	0.00033s
Profile smarty_function_oxmultilang: 0.00098s	63.27% 51	*	2.0E-5s
Profile seoencoder_loadFromCache: 0.00068s	43.83% 38	*	2.0E-5s
Profile _getLangTranslationArray: 0.0006s	38.53% 65	*	1.0E-5s
Profile _getAmountPrice: 0.00049s	31.94% 1	*	0.00049s
Profile getCategoryUri: 0.00043s	28.02% 21	*	2.0E-5s
Profile loadinglists: 0.00031s	20.22% 2	*	0.00016s
Profile executeMaintenanceTasks: 0.00027s	17.39% 1	*	0.00027s
Profile getArticleUri: 0.00021s	13.84% 4	*	5.0E-5s
Profile _assignPriceInternal: 7.0E-5s	4.72% 1	*	7.0E-5s
Profile oxviewconfig::setViewConfigParam: 6.0E-5s	4.15% 34	*	0s
Profile oxviewconfig::getViewConfigParam: 6.0E-5s	3.73% 46	*	0s
Profile isSearchEngine: 2.0E-5s	0.97% 1	*	2.0E-5s
Profile fround: 1.0E-5s	0.89% 9	*	0s
Profile articleAssignParentInternal: 1.0E-5s	0.65% 3	*	0s
Profile _applyVAT: 1.0E-5s	0.45% 2	*	0s

cl=oxwinformation(show/hide)
Memory usage: 7.572 MB (peak: 146.438 MB)
System memory usage: 27 MB (peak: 147 MB)
Executed: 2018-06-22 09:46:42
Timestamp: 1529653602.8237
Execution time:0.0026
----------------------------------------------------------
Profile process: 3.64709s	138196.83% 10	*	0.36471s
Profile oxNew: 0.02114s	800.89% 136	*	0.00016s
Profile oxAutoload: 0.00742s	281.31% 98	*	8.0E-5s
Profile buildTree: 0.00351s	133.16% 1	*	0.00351s
Profile articleAssign: 0.001s	37.81% 3	*	0.00033s
Profile smarty_function_oxmultilang: 0.00099s	37.55% 52	*	2.0E-5s
Profile seoencoder_loadFromCache: 0.0007s	26.41% 45	*	2.0E-5s
Profile _getLangTranslationArray: 0.00061s	23.08% 67	*	1.0E-5s
Profile _getAmountPrice: 0.00049s	18.72% 1	*	0.00049s
Profile getCategoryUri: 0.00043s	16.42% 21	*	2.0E-5s
Profile loadinglists: 0.00031s	11.85% 2	*	0.00016s
Profile executeMaintenanceTasks: 0.00027s	10.19% 1	*	0.00027s
Profile getArticleUri: 0.00021s	8.11% 4	*	5.0E-5s
Profile _assignPriceInternal: 7.0E-5s	2.76% 1	*	7.0E-5s
Profile oxviewconfig::setViewConfigParam: 7.0E-5s	2.48% 35	*	0s
Profile oxviewconfig::getViewConfigParam: 6.0E-5s	2.19% 46	*	0s
Profile isSearchEngine: 2.0E-5s	0.57% 1	*	2.0E-5s
Profile fround: 1.0E-5s	0.52% 9	*	0s
Profile articleAssignParentInternal: 1.0E-5s	0.38% 3	*	0s
Profile _applyVAT: 1.0E-5s	0.26% 2	*	0s

cl=oxwmanufacturerlist(show/hide)
Memory usage: 7.708 MB (peak: 146.438 MB)
System memory usage: 27 MB (peak: 147 MB)
Executed: 2018-06-22 09:46:42
Timestamp: 1529653602.8244
Execution time:0.0006
----------------------------------------------------------
Profile process: 3.64763s	656058.36% 11	*	0.3316s
Profile oxNew: 0.02132s	3833.79% 139	*	0.00015s
Profile oxAutoload: 0.00747s	1343.18% 99	*	8.0E-5s
Profile buildTree: 0.00351s	632.03% 1	*	0.00351s
Profile smarty_function_oxmultilang: 0.00101s	180.92% 53	*	2.0E-5s
Profile articleAssign: 0.001s	179.46% 3	*	0.00033s
Profile seoencoder_loadFromCache: 0.0007s	125.34% 45	*	2.0E-5s
Profile _getLangTranslationArray: 0.00062s	112.05% 69	*	1.0E-5s
Profile _getAmountPrice: 0.00049s	88.85% 1	*	0.00049s
Profile getCategoryUri: 0.00043s	77.96% 21	*	2.0E-5s
Profile loadinglists: 0.00031s	56.26% 2	*	0.00016s
Profile executeMaintenanceTasks: 0.00027s	48.37% 1	*	0.00027s
Profile getArticleUri: 0.00021s	38.51% 4	*	5.0E-5s
Profile _assignPriceInternal: 7.0E-5s	13.12% 1	*	7.0E-5s
Profile oxviewconfig::setViewConfigParam: 7.0E-5s	11.92% 36	*	0s
Profile oxviewconfig::getViewConfigParam: 6.0E-5s	10.38% 46	*	0s
Profile isSearchEngine: 2.0E-5s	2.7% 1	*	2.0E-5s
Profile fround: 1.0E-5s	2.49% 9	*	0s
Profile articleAssignParentInternal: 1.0E-5s	1.8% 3	*	0s
Profile _applyVAT: 1.0E-5s	1.24% 2	*	0s

cl=oxwcategorytree(show/hide)
Memory usage: 7.746 MB (peak: 146.438 MB)
System memory usage: 27 MB (peak: 147 MB)
Executed: 2018-06-22 09:46:42
Timestamp: 1529653602.8251
Execution time:0.0006
----------------------------------------------------------
Profile process: 3.64823s	599129.84% 12	*	0.30402s
Profile oxNew: 0.02133s	3503.72% 142	*	0.00015s
Profile oxAutoload: 0.00747s	1226.43% 99	*	8.0E-5s
Profile buildTree: 0.00351s	577.09% 1	*	0.00351s
Profile smarty_function_oxmultilang: 0.00102s	167.66% 54	*	2.0E-5s
Profile articleAssign: 0.001s	163.86% 3	*	0.00033s
Profile seoencoder_loadFromCache: 0.0007s	114.45% 45	*	2.0E-5s
Profile _getLangTranslationArray: 0.00064s	104.46% 71	*	1.0E-5s
Profile _getAmountPrice: 0.00049s	81.13% 1	*	0.00049s
Profile getCategoryUri: 0.00043s	71.18% 21	*	2.0E-5s
Profile loadinglists: 0.00031s	51.37% 2	*	0.00016s
Profile executeMaintenanceTasks: 0.00027s	44.17% 1	*	0.00027s
Profile getArticleUri: 0.00021s	35.16% 4	*	5.0E-5s
Profile _assignPriceInternal: 7.0E-5s	11.98% 1	*	7.0E-5s
Profile oxviewconfig::setViewConfigParam: 7.0E-5s	11.04% 37	*	0s
Profile oxviewconfig::getViewConfigParam: 6.0E-5s	9.48% 46	*	0s
Profile isSearchEngine: 2.0E-5s	2.47% 1	*	2.0E-5s
Profile fround: 1.0E-5s	2.27% 9	*	0s
Profile articleAssignParentInternal: 1.0E-5s	1.64% 3	*	0s
Profile _applyVAT: 1.0E-5s	1.14% 2	*	0s

cl=details(show/hide)
Memory usage: 7.898 MB (peak: 146.438 MB)
System memory usage: 27 MB (peak: 147 MB)
Executed: 2018-06-22 09:46:42
Timestamp: 1529653602.8303
Execution time:7.2862
----------------------------------------------------------
Profile process: 3.65394s	50.15% 12	*	0.3045s
Profile oxNew: 0.02147s	0.29% 147	*	0.00015s
Profile oxAutoload: 0.00749s	0.1% 100	*	7.0E-5s
Profile buildTree: 0.00351s	0.05% 1	*	0.00351s
Profile smarty_function_oxmultilang: 0.00113s	0.02% 64	*	2.0E-5s
Profile articleAssign: 0.001s	0.01% 3	*	0.00033s
Profile seoencoder_loadFromCache: 0.00071s	0.01% 49	*	1.0E-5s
Profile _getLangTranslationArray: 0.00069s	0.01% 82	*	1.0E-5s
Profile _getAmountPrice: 0.00049s	0.01% 1	*	0.00049s
Profile getArticleMainUri: 0.00045s	0.01% 2	*	0.00022s
Profile getCategoryUri: 0.00043s	0.01% 21	*	2.0E-5s
Profile loadinglists: 0.00031s	0% 2	*	0.00016s
Profile executeMaintenanceTasks: 0.00027s	0% 1	*	0.00027s
Profile getArticleUri: 0.00021s	0% 4	*	5.0E-5s
Profile _assignPriceInternal: 7.0E-5s	0% 1	*	7.0E-5s
Profile oxviewconfig::setViewConfigParam: 7.0E-5s	0% 38	*	0s
Profile oxviewconfig::getViewConfigParam: 6.0E-5s	0% 48	*	0s
Profile isSearchEngine: 2.0E-5s	0% 1	*	2.0E-5s
Profile fround: 1.0E-5s	0% 9	*	0s
Profile articleAssignParentInternal: 1.0E-5s	0% 3	*	0s
Profile _applyVAT: 1.0E-5s	0% 2	*	0s
Profile parseThroughSmarty: 0s	0% 1	*	0s
```

---

<div class="post-metadata">

**Author:** ![mws\_1941](https://forum.oxid-esales.com/user_avatar/forum.oxid-esales.com/mws_1941/32/65_2.png) [@mws\_1941](https://forum.oxid-esales.com/u/mws_1941)\
**Post date:** [June 22, 2018, 1:12pm UTC](https://forum.oxid-esales.com/t/die-suche-nach-performance/93711/2 "2018-06-22T13:12:17Z")

</div>

Hallo.  
Du könntest erst einmal versuchen festzustellen, ob OXID oder die Datenbank oder der Webserver oder der Server an sich die Dauer verursacht. Dann kannst du optimieren.

Gruss

Marcel

---

<div class="post-metadata">

**Author:** ![leofonic](https://forum.oxid-esales.com/user_avatar/forum.oxid-esales.com/leofonic/32/58_2.png) [@leofonic](https://forum.oxid-esales.com/u/leofonic)\
**Post date:** [June 22, 2018, 4:07pm UTC](https://forum.oxid-esales.com/t/die-suche-nach-performance/93711/3 "2018-06-22T16:07:08Z")

</div>

> [@Graschi](#):
>
> Insbesondere die Ausführung mit über 7 Sekunden. Was wird da konkret geladen?

Die ganze Seite. Du kannst mal in core/oxshopcontrol.php folgendes ändern:

```
startProfile('process');

```

in

```
startProfile('process_' . $sClass);

```

und

```
stopProfile('process');

```

in

```
stopProfile('process_' . $sClass);

```

und dann nochmal profilen.

---

<div class="post-metadata">

**Author:** ![Graschi](https://forum.oxid-esales.com/letter_avatar_proxy/v4/letter/g/3e96dc/32.png) [@Graschi](https://forum.oxid-esales.com/u/Graschi)\
**Post date:** [July 17, 2018, 9:38am UTC](https://forum.oxid-esales.com/t/die-suche-nach-performance/93711/4 "2018-07-17T09:38:02Z")

</div>

Hallo zusammen,

sorry für die lange Antwortzeit aber ich habe etwas Zeit für ander Dinge benötigt.  
@mws_1941: Ich habe das slow\_query\_log eingeschaltet und das Logfile geprüft.  
Beim Aufruf des Artikels erscheint dort das folgende Statement:

 ![sql](https://forum.oxid-esales.com/uploads/default/original/1X/e7ab2fb51e728326cb7bb1a3b8808d140769cf12.png)  
(Sorry für das Bild, aber anders kann ich das hier nicht posten -\> Fehlermeldung)  
Wenn ich das in phpmyadmin nachstelle dauert die Abfrage 10,3064 Sekunden.

Insofern gehe ich von der Datenbank aus.

@leofonic:  
Deinen Tip habe ich berücksichtigt und erhalte folgendes Ergebnis:

> **Zusammenfassung**
>
> cl=oxwcookienote(show/hide)  
> Memory usage: 6.419 MB (peak: 129.598 MB)  
> System memory usage: 8 MB (peak: 130.25 MB)  
> Executed: 2018-07-17 11:32:47  
> Timestamp: 1531819967.0666  
> Execution time:0.0008  
> ----------------------------------------------------------  
> Profile process\_oxwarticledetails: 8.55721s 1081721.76% 1 \* 8.55721s  
> Profile getArticleUri: 0.03015s 3811.54% 6 \* 0.00503s  
> Profile \_createArticleCategoryUri: 0.02631s 3326.1% 2 \* 0.01316s  
> Profile oxNew: 0.02021s 2554.61% 108 \* 0.00019s  
> Profile oxAutoload: 0.00714s 902.5% 89 \* 8.0E-5s  
> Profile buildTree: 0.00526s 665.07% 1 \* 0.00526s  
> Profile getCategoryUri: 0.00364s 460.13% 4 \* 0.00091s  
> Profile \_getLangTranslationArray: 0.00218s 275.2% 41 \* 5.0E-5s  
> Profile loadinglists: 0.00211s 266.61% 2 \* 0.00105s  
> Profile articleAssign: 0.00145s 182.82% 6 \* 0.00024s  
> Profile process\_oxwcookienote: 0.00077s 97.86% 1 \* 0.00077s  
> Profile seoencoder\_loadFromCache: 0.00075s 95.09% 16 \* 5.0E-5s  
> Profile \_getAmountPrice: 0.00059s 74.71% 1 \* 0.00059s  
> Profile smarty\_function\_oxmultilang: 0.00048s 60.22% 26 \* 2.0E-5s  
> Profile seoencoder\_saveInCache: 0.00038s 48.16% 7 \* 5.0E-5s  
> Profile executeMaintenanceTasks: 0.0003s 38.07% 1 \* 0.0003s  
> Profile \_assignPriceInternal: 0.00012s 14.56% 1 \* 0.00012s  
> Profile oxviewconfig::getViewConfigParam: 3.0E-5s 3.29% 19 \* 0s  
> Profile isSearchEngine: 2.0E-5s 2.17% 1 \* 2.0E-5s  
> Profile articleAssignParentInternal: 2.0E-5s 2.17% 5 \* 0s  
> Profile fround: 1.0E-5s 1.72% 9 \* 0s  
> Profile oxviewconfig::setViewConfigParam: 1.0E-5s 1.33% 10 \* 0s  
> Profile \_applyVAT: 1.0E-5s 0.87% 2 \* 0s  
> cl=oxwlanguagelist(show/hide)  
> Memory usage: 6.552 MB (peak: 129.598 MB)  
> System memory usage: 8 MB (peak: 130.25 MB)  
> Executed: 2018-07-17 11:32:47  
> Timestamp: 1531819967.0688  
> Execution time:0.0015  
> ----------------------------------------------------------  
> Profile process\_oxwarticledetails: 8.55721s 569706.79% 1 \* 8.55721s  
> Profile getArticleUri: 0.03015s 2007.41% 6 \* 0.00503s  
> Profile \_createArticleCategoryUri: 0.02631s 1751.75% 2 \* 0.01316s  
> Profile oxNew: 0.02049s 1364.21% 111 \* 0.00018s  
> Profile oxAutoload: 0.00719s 478.98% 90 \* 8.0E-5s  
> Profile buildTree: 0.00526s 350.27% 1 \* 0.00526s  
> Profile getCategoryUri: 0.00364s 242.33% 4 \* 0.00091s  
> Profile \_getLangTranslationArray: 0.00219s 145.59% 42 \* 5.0E-5s  
> Profile loadinglists: 0.00211s 140.41% 2 \* 0.00105s  
> Profile process\_oxwlanguagelist: 0.00148s 98.67% 1 \* 0.00148s  
> Profile articleAssign: 0.00145s 96.29% 6 \* 0.00024s  
> Profile process\_oxwcookienote: 0.00077s 51.54% 1 \* 0.00077s  
> Profile seoencoder\_loadFromCache: 0.00075s 50.08% 16 \* 5.0E-5s  
> Profile \_getAmountPrice: 0.00059s 39.35% 1 \* 0.00059s  
> Profile smarty\_function\_oxmultilang: 0.00048s 31.71% 26 \* 2.0E-5s  
> Profile seoencoder\_saveInCache: 0.00038s 25.37% 7 \* 5.0E-5s  
> Profile executeMaintenanceTasks: 0.0003s 20.05% 1 \* 0.0003s  
> Profile \_assignPriceInternal: 0.00012s 7.67% 1 \* 0.00012s  
> Profile oxviewconfig::getViewConfigParam: 3.0E-5s 2.19% 24 \* 0s  
> Profile isSearchEngine: 2.0E-5s 1.14% 1 \* 2.0E-5s  
> Profile articleAssignParentInternal: 2.0E-5s 1.14% 5 \* 0s  
> Profile oxviewconfig::setViewConfigParam: 2.0E-5s 1.13% 16 \* 0s  
> Profile fround: 1.0E-5s 0.9% 9 \* 0s  
> Profile \_applyVAT: 1.0E-5s 0.46% 2 \* 0s  
> cl=oxwcurrencylist(show/hide)  
> Memory usage: 6.69 MB (peak: 129.598 MB)  
> System memory usage: 8 MB (peak: 130.25 MB)  
> Executed: 2018-07-17 11:32:47  
> Timestamp: 1531819967.0705  
> Execution time:0.0015  
> ----------------------------------------------------------  
> Profile process\_oxwarticledetails: 8.55721s 567454.99% 1 \* 8.55721s  
> Profile getArticleUri: 0.03015s 1999.48% 6 \* 0.00503s  
> Profile \_createArticleCategoryUri: 0.02631s 1744.82% 2 \* 0.01316s  
> Profile oxNew: 0.02072s 1374.07% 114 \* 0.00018s  
> Profile oxAutoload: 0.00725s 480.81% 91 \* 8.0E-5s  
> Profile buildTree: 0.00526s 348.89% 1 \* 0.00526s  
> Profile getCategoryUri: 0.00364s 241.38% 4 \* 0.00091s  
> Profile \_getLangTranslationArray: 0.0022s 145.68% 43 \* 5.0E-5s  
> Profile loadinglists: 0.00211s 139.86% 2 \* 0.00105s  
> Profile process\_oxwcurrencylist: 0.00149s 98.69% 1 \* 0.00149s  
> Profile process\_oxwlanguagelist: 0.00148s 98.28% 1 \* 0.00148s  
> Profile articleAssign: 0.00145s 95.91% 6 \* 0.00024s  
> Profile process\_oxwcookienote: 0.00077s 51.34% 1 \* 0.00077s  
> Profile seoencoder\_loadFromCache: 0.00075s 49.88% 16 \* 5.0E-5s  
> Profile \_getAmountPrice: 0.00059s 39.19% 1 \* 0.00059s  
> Profile smarty\_function\_oxmultilang: 0.00048s 31.59% 26 \* 2.0E-5s  
> Profile seoencoder\_saveInCache: 0.00038s 25.26% 7 \* 5.0E-5s  
> Profile executeMaintenanceTasks: 0.0003s 19.97% 1 \* 0.0003s  
> Profile \_assignPriceInternal: 0.00012s 7.64% 1 \* 0.00012s  
> Profile oxviewconfig::getViewConfigParam: 3.0E-5s 2.25% 25 \* 0s  
> Profile oxviewconfig::setViewConfigParam: 2.0E-5s 1.25% 18 \* 0s  
> Profile isSearchEngine: 2.0E-5s 1.14% 1 \* 2.0E-5s  
> Profile articleAssignParentInternal: 2.0E-5s 1.14% 5 \* 0s  
> Profile fround: 1.0E-5s 0.9% 9 \* 0s  
> Profile \_applyVAT: 1.0E-5s 0.46% 2 \* 0s  
> cl=oxwservicemenu(show/hide)  
> Memory usage: 6.954 MB (peak: 129.598 MB)  
> System memory usage: 8 MB (peak: 130.25 MB)  
> Executed: 2018-07-17 11:32:47  
> Timestamp: 1531819967.073  
> Execution time:0.0024  
> ----------------------------------------------------------  
> Profile process\_oxwarticledetails: 8.55721s 360755.13% 1 \* 8.55721s  
> Profile getArticleUri: 0.03015s 1271.15% 6 \* 0.00503s  
> Profile \_createArticleCategoryUri: 0.02631s 1109.26% 2 \* 0.01316s  
> Profile oxNew: 0.02126s 896.07% 119 \* 0.00018s  
> Profile oxAutoload: 0.00747s 315.07% 93 \* 8.0E-5s  
> Profile buildTree: 0.00526s 221.8% 1 \* 0.00526s  
> Profile getCategoryUri: 0.00364s 153.45% 4 \* 0.00091s  
> Profile process\_oxwservicemenu: 0.00236s 99.46% 1 \* 0.00236s  
> Profile \_getLangTranslationArray: 0.00227s 95.91% 57 \* 4.0E-5s  
> Profile loadinglists: 0.00211s 88.91% 2 \* 0.00105s  
> Profile process\_oxwcurrencylist: 0.00149s 62.74% 1 \* 0.00149s  
> Profile process\_oxwlanguagelist: 0.00148s 62.48% 1 \* 0.00148s  
> Profile articleAssign: 0.00145s 60.97% 6 \* 0.00024s  
> Profile process\_oxwcookienote: 0.00077s 32.64% 1 \* 0.00077s  
> Profile seoencoder\_loadFromCache: 0.00076s 32.2% 20 \* 4.0E-5s  
> Profile smarty\_function\_oxmultilang: 0.00064s 27% 39 \* 2.0E-5s  
> Profile \_getAmountPrice: 0.00059s 24.92% 1 \* 0.00059s  
> Profile seoencoder\_saveInCache: 0.00038s 16.06% 7 \* 5.0E-5s  
> Profile executeMaintenanceTasks: 0.0003s 12.69% 1 \* 0.0003s  
> Profile \_assignPriceInternal: 0.00012s 4.85% 1 \* 0.00012s  
> Profile oxviewconfig::getViewConfigParam: 4.0E-5s 1.77% 35 \* 0s  
> Profile oxviewconfig::setViewConfigParam: 2.0E-5s 1.02% 24 \* 0s  
> Profile isSearchEngine: 2.0E-5s 0.72% 1 \* 2.0E-5s  
> Profile articleAssignParentInternal: 2.0E-5s 0.72% 5 \* 0s  
> Profile fround: 1.0E-5s 0.57% 9 \* 0s  
> Profile \_applyVAT: 1.0E-5s 0.29% 2 \* 0s  
> cl=oxwminibasket(show/hide)  
> Memory usage: 7.091 MB (peak: 129.598 MB)  
> System memory usage: 8 MB (peak: 130.25 MB)  
> Executed: 2018-07-17 11:32:47  
> Timestamp: 1531819967.0744  
> Execution time:0.0013  
> ----------------------------------------------------------  
> Profile process\_oxwarticledetails: 8.55721s 673766.25% 1 \* 8.55721s  
> Profile getArticleUri: 0.03015s 2374.08% 6 \* 0.00503s  
> Profile \_createArticleCategoryUri: 0.02631s 2071.71% 2 \* 0.01316s  
> Profile oxNew: 0.02144s 1687.82% 122 \* 0.00018s  
> Profile oxAutoload: 0.00752s 592.06% 94 \* 8.0E-5s  
> Profile buildTree: 0.00526s 414.25% 1 \* 0.00526s  
> Profile getCategoryUri: 0.00364s 286.6% 4 \* 0.00091s  
> Profile process\_oxwservicemenu: 0.00236s 185.75% 1 \* 0.00236s  
> Profile \_getLangTranslationArray: 0.00229s 180.23% 59 \* 4.0E-5s  
> Profile loadinglists: 0.00211s 166.06% 2 \* 0.00105s  
> Profile process\_oxwcurrencylist: 0.00149s 117.18% 1 \* 0.00149s  
> Profile process\_oxwlanguagelist: 0.00148s 116.69% 1 \* 0.00148s  
> Profile articleAssign: 0.00145s 113.87% 6 \* 0.00024s  
> Profile process\_oxwminibasket: 0.00126s 98.82% 1 \* 0.00126s  
> Profile process\_oxwcookienote: 0.00077s 60.95% 1 \* 0.00077s  
> Profile seoencoder\_loadFromCache: 0.00077s 60.39% 21 \* 4.0E-5s  
> Profile smarty\_function\_oxmultilang: 0.00066s 51.92% 40 \* 2.0E-5s  
> Profile \_getAmountPrice: 0.00059s 46.54% 1 \* 0.00059s  
> Profile seoencoder\_saveInCache: 0.00038s 30% 7 \* 5.0E-5s  
> Profile executeMaintenanceTasks: 0.0003s 23.71% 1 \* 0.0003s  
> Profile \_assignPriceInternal: 0.00012s 9.07% 1 \* 0.00012s  
> Profile oxviewconfig::getViewConfigParam: 4.0E-5s 3.45% 36 \* 0s  
> Profile oxviewconfig::setViewConfigParam: 3.0E-5s 2.05% 26 \* 0s  
> Profile isSearchEngine: 2.0E-5s 1.35% 1 \* 2.0E-5s  
> Profile articleAssignParentInternal: 2.0E-5s 1.35% 5 \* 0s  
> Profile fround: 1.0E-5s 1.07% 9 \* 0s  
> Profile \_applyVAT: 1.0E-5s 0.54% 2 \* 0s  
> cl=oxwcategorytree(show/hide)  
> Memory usage: 7.299 MB (peak: 129.598 MB)  
> System memory usage: 8 MB (peak: 130.25 MB)  
> Executed: 2018-07-17 11:32:47  
> Timestamp: 1531819967.0771  
> Execution time:0.0023  
> ----------------------------------------------------------  
> Profile process\_oxwarticledetails: 8.55721s 375316.62% 1 \* 8.55721s  
> Profile getArticleUri: 0.03015s 1322.46% 6 \* 0.00503s  
> Profile \_createArticleCategoryUri: 0.02631s 1154.03% 2 \* 0.01316s  
> Profile oxNew: 0.02161s 947.81% 125 \* 0.00017s  
> Profile oxAutoload: 0.00756s 331.78% 95 \* 8.0E-5s  
> Profile buildTree: 0.00526s 230.75% 1 \* 0.00526s  
> Profile getCategoryUri: 0.00396s 173.68% 22 \* 0.00018s  
> Profile process\_oxwservicemenu: 0.00236s 103.47% 1 \* 0.00236s  
> Profile \_getLangTranslationArray: 0.00232s 101.83% 64 \* 4.0E-5s  
> Profile process\_oxwcategorytree: 0.00226s 99.26% 1 \* 0.00226s  
> Profile loadinglists: 0.00211s 92.5% 2 \* 0.00105s  
> Profile process\_oxwcurrencylist: 0.00149s 65.27% 1 \* 0.00149s  
> Profile process\_oxwlanguagelist: 0.00148s 65% 1 \* 0.00148s  
> Profile articleAssign: 0.00145s 63.43% 6 \* 0.00024s  
> Profile process\_oxwminibasket: 0.00126s 55.05% 1 \* 0.00126s  
> Profile seoencoder\_loadFromCache: 0.00081s 35.69% 39 \* 2.0E-5s  
> Profile process\_oxwcookienote: 0.00077s 33.95% 1 \* 0.00077s  
> Profile smarty\_function\_oxmultilang: 0.00072s 31.39% 44 \* 2.0E-5s  
> Profile \_getAmountPrice: 0.00059s 25.92% 1 \* 0.00059s  
> Profile seoencoder\_saveInCache: 0.00038s 16.71% 7 \* 5.0E-5s  
> Profile executeMaintenanceTasks: 0.0003s 13.21% 1 \* 0.0003s  
> Profile \_assignPriceInternal: 0.00012s 5.05% 1 \* 0.00012s  
> Profile oxviewconfig::getViewConfigParam: 5.0E-5s 2.13% 41 \* 0s  
> Profile oxviewconfig::setViewConfigParam: 3.0E-5s 1.28% 31 \* 0s  
> Profile isSearchEngine: 2.0E-5s 0.75% 1 \* 2.0E-5s  
> Profile articleAssignParentInternal: 2.0E-5s 0.75% 5 \* 0s  
> Profile fround: 1.0E-5s 0.6% 9 \* 0s  
> Profile \_applyVAT: 1.0E-5s 0.3% 2 \* 0s  
> cl=oxwarticledetails(show/hide)  
> Memory usage: 6.266 MB (peak: 129.598 MB)  
> System memory usage: 8 MB (peak: 130.25 MB)  
> Executed: 2018-07-17 11:32:47  
> Timestamp: 1531819967.0653  
> Execution time:8.5574  
> ----------------------------------------------------------  
> Profile process\_oxwarticledetails: 8.55721s 100% 1 \* 8.55721s  
> Profile getArticleUri: 0.03015s 0.35% 6 \* 0.00503s  
> Profile \_createArticleCategoryUri: 0.02631s 0.31% 2 \* 0.01316s  
> Profile oxNew: 0.01996s 0.23% 105 \* 0.00019s  
> Profile oxAutoload: 0.00708s 0.08% 88 \* 8.0E-5s  
> Profile buildTree: 0.00526s 0.06% 1 \* 0.00526s  
> Profile getCategoryUri: 0.00364s 0.04% 4 \* 0.00091s  
> Profile \_getLangTranslationArray: 0.00217s 0.03% 40 \* 5.0E-5s  
> Profile loadinglists: 0.00211s 0.02% 2 \* 0.00105s  
> Profile articleAssign: 0.00145s 0.02% 6 \* 0.00024s  
> Profile seoencoder\_loadFromCache: 0.00075s 0.01% 16 \* 5.0E-5s  
> Profile \_getAmountPrice: 0.00059s 0.01% 1 \* 0.00059s  
> Profile smarty\_function\_oxmultilang: 0.00048s 0.01% 26 \* 2.0E-5s  
> Profile seoencoder\_saveInCache: 0.00038s 0% 7 \* 5.0E-5s  
> Profile executeMaintenanceTasks: 0.0003s 0% 1 \* 0.0003s  
> Profile \_assignPriceInternal: 0.00012s 0% 1 \* 0.00012s  
> Profile oxviewconfig::getViewConfigParam: 3.0E-5s 0% 19 \* 0s  
> Profile isSearchEngine: 2.0E-5s 0% 1 \* 2.0E-5s  
> Profile articleAssignParentInternal: 2.0E-5s 0% 5 \* 0s  
> Profile fround: 1.0E-5s 0% 9 \* 0s  
> Profile oxviewconfig::setViewConfigParam: 1.0E-5s 0% 9 \* 0s  
> Profile \_applyVAT: 1.0E-5s 0% 2 \* 0s  
> cl=oxwservicelist(show/hide)  
> Memory usage: 7.481 MB (peak: 129.598 MB)  
> System memory usage: 8 MB (peak: 130.25 MB)  
> Executed: 2018-07-17 11:32:47  
> Timestamp: 1531819967.0796  
> Execution time:0.0018  
> ----------------------------------------------------------  
> Profile process\_oxwarticledetails: 8.55721s 467337.6% 1 \* 8.55721s  
> Profile getArticleUri: 0.03015s 1646.71% 6 \* 0.00503s  
> Profile \_createArticleCategoryUri: 0.02631s 1436.98% 2 \* 0.01316s  
> Profile oxNew: 0.022s 1201.64% 130 \* 0.00017s  
> Profile oxAutoload: 0.00771s 421% 97 \* 8.0E-5s  
> Profile buildTree: 0.00526s 287.33% 1 \* 0.00526s  
> Profile getCategoryUri: 0.00396s 216.42% 23 \* 0.00017s  
> Profile \_getLangTranslationArray: 0.00238s 130.12% 73 \* 3.0E-5s  
> Profile process\_oxwservicemenu: 0.00236s 128.84% 1 \* 0.00236s  
> Profile process\_oxwcategorytree: 0.00226s 123.59% 1 \* 0.00226s  
> Profile loadinglists: 0.00211s 115.18% 2 \* 0.00105s  
> Profile process\_oxwservicelist: 0.00182s 99.18% 1 \* 0.00182s  
> Profile process\_oxwcurrencylist: 0.00149s 81.28% 1 \* 0.00149s  
> Profile process\_oxwlanguagelist: 0.00148s 80.94% 1 \* 0.00148s  
> Profile articleAssign: 0.00145s 78.98% 6 \* 0.00024s  
> Profile process\_oxwminibasket: 0.00126s 68.54% 1 \* 0.00126s  
> Profile seoencoder\_loadFromCache: 0.00094s 51.28% 42 \* 2.0E-5s  
> Profile smarty\_function\_oxmultilang: 0.00085s 46.54% 52 \* 2.0E-5s  
> Profile process\_oxwcookienote: 0.00077s 42.28% 1 \* 0.00077s  
> Profile \_getAmountPrice: 0.00059s 32.28% 1 \* 0.00059s  
> Profile seoencoder\_saveInCache: 0.00038s 20.81% 7 \* 5.0E-5s  
> Profile executeMaintenanceTasks: 0.0003s 16.45% 1 \* 0.0003s  
> Profile \_assignPriceInternal: 0.00012s 6.29% 1 \* 0.00012s  
> Profile oxviewconfig::getViewConfigParam: 5.0E-5s 2.97% 46 \* 0s  
> Profile oxviewconfig::setViewConfigParam: 3.0E-5s 1.74% 34 \* 0s  
> Profile isSearchEngine: 2.0E-5s 0.94% 1 \* 2.0E-5s  
> Profile articleAssignParentInternal: 2.0E-5s 0.94% 5 \* 0s  
> Profile fround: 1.0E-5s 0.74% 9 \* 0s  
> Profile \_applyVAT: 1.0E-5s 0.38% 2 \* 0s  
> cl=oxwinformation(show/hide)  
> Memory usage: 7.751 MB (peak: 129.598 MB)  
> System memory usage: 8.25 MB (peak: 130.25 MB)  
> Executed: 2018-07-17 11:32:47  
> Timestamp: 1531819967.0828  
> Execution time:0.003  
> ----------------------------------------------------------  
> Profile process\_oxwarticledetails: 8.55721s 282989.26% 1 \* 8.55721s  
> Profile getArticleUri: 0.03015s 997.14% 6 \* 0.00503s  
> Profile \_createArticleCategoryUri: 0.02631s 870.14% 2 \* 0.01316s  
> Profile oxNew: 0.02226s 735.99% 141 \* 0.00016s  
> Profile oxAutoload: 0.00775s 256.45% 98 \* 8.0E-5s  
> Profile buildTree: 0.00526s 173.99% 1 \* 0.00526s  
> Profile getCategoryUri: 0.00396s 131.05% 23 \* 0.00017s  
> Profile process\_oxwinformation: 0.00301s 99.47% 1 \* 0.00301s  
> Profile \_getLangTranslationArray: 0.0024s 79.25% 75 \* 3.0E-5s  
> Profile process\_oxwservicemenu: 0.00236s 78.02% 1 \* 0.00236s  
> Profile process\_oxwcategorytree: 0.00226s 74.84% 1 \* 0.00226s  
> Profile loadinglists: 0.00211s 69.75% 2 \* 0.00105s  
> Profile process\_oxwservicelist: 0.00182s 60.06% 1 \* 0.00182s  
> Profile process\_oxwcurrencylist: 0.00149s 49.22% 1 \* 0.00149s  
> Profile process\_oxwlanguagelist: 0.00148s 49.01% 1 \* 0.00148s  
> Profile articleAssign: 0.00145s 47.83% 6 \* 0.00024s  
> Profile process\_oxwminibasket: 0.00126s 41.5% 1 \* 0.00126s  
> Profile seoencoder\_loadFromCache: 0.00096s 31.87% 49 \* 2.0E-5s  
> Profile smarty\_function\_oxmultilang: 0.00087s 28.64% 53 \* 2.0E-5s  
> Profile process\_oxwcookienote: 0.00077s 25.6% 1 \* 0.00077s  
> Profile \_getAmountPrice: 0.00059s 19.55% 1 \* 0.00059s  
> Profile seoencoder\_saveInCache: 0.00038s 12.6% 7 \* 5.0E-5s  
> Profile executeMaintenanceTasks: 0.0003s 9.96% 1 \* 0.0003s  
> Profile \_assignPriceInternal: 0.00012s 3.81% 1 \* 0.00012s  
> Profile oxviewconfig::getViewConfigParam: 5.0E-5s 1.8% 46 \* 0s  
> Profile oxviewconfig::setViewConfigParam: 3.0E-5s 1.09% 35 \* 0s  
> Profile articleAssignParentInternal: 2.0E-5s 0.57% 5 \* 0s  
> Profile isSearchEngine: 2.0E-5s 0.57% 1 \* 2.0E-5s  
> Profile fround: 1.0E-5s 0.45% 9 \* 0s  
> Profile \_applyVAT: 1.0E-5s 0.23% 2 \* 0s  
> cl=oxwmanufacturerlist(show/hide)  
> Memory usage: 7.888 MB (peak: 129.598 MB)  
> System memory usage: 8.5 MB (peak: 130.25 MB)  
> Executed: 2018-07-17 11:32:47  
> Timestamp: 1531819967.0836  
> Execution time:0.0006  
> ----------------------------------------------------------  
> Profile process\_oxwarticledetails: 8.55721s 1400371.75% 1 \* 8.55721s  
> Profile getArticleUri: 0.03015s 4934.33% 6 \* 0.00503s  
> Profile \_createArticleCategoryUri: 0.02631s 4305.89% 2 \* 0.01316s  
> Profile oxNew: 0.02244s 3672.02% 144 \* 0.00016s  
> Profile oxAutoload: 0.0078s 1276.75% 99 \* 8.0E-5s  
> Profile buildTree: 0.00526s 860.98% 1 \* 0.00526s  
> Profile getCategoryUri: 0.00396s 648.5% 23 \* 0.00017s  
> Profile process\_oxwinformation: 0.00301s 492.24% 1 \* 0.00301s  
> Profile \_getLangTranslationArray: 0.00241s 394.62% 77 \* 3.0E-5s  
> Profile process\_oxwservicemenu: 0.00236s 386.07% 1 \* 0.00236s  
> Profile process\_oxwcategorytree: 0.00226s 370.35% 1 \* 0.00226s  
> Profile loadinglists: 0.00211s 345.14% 2 \* 0.00105s  
> Profile process\_oxwservicelist: 0.00182s 297.19% 1 \* 0.00182s  
> Profile process\_oxwcurrencylist: 0.00149s 243.54% 1 \* 0.00149s  
> Profile process\_oxwlanguagelist: 0.00148s 242.53% 1 \* 0.00148s  
> Profile articleAssign: 0.00145s 236.68% 6 \* 0.00024s  
> Profile process\_oxwminibasket: 0.00126s 205.38% 1 \* 0.00126s  
> Profile seoencoder\_loadFromCache: 0.00096s 157.71% 49 \* 2.0E-5s  
> Profile smarty\_function\_oxmultilang: 0.00088s 144.36% 54 \* 2.0E-5s  
> Profile process\_oxwcookienote: 0.00077s 126.69% 1 \* 0.00077s  
> Profile process\_oxwmanufacturerlist: 0.0006s 97.54% 1 \* 0.0006s  
> Profile \_getAmountPrice: 0.00059s 96.72% 1 \* 0.00059s  
> Profile seoencoder\_saveInCache: 0.00038s 62.35% 7 \* 5.0E-5s  
> Profile executeMaintenanceTasks: 0.0003s 49.28% 1 \* 0.0003s  
> Profile \_assignPriceInternal: 0.00012s 18.85% 1 \* 0.00012s  
> Profile oxviewconfig::getViewConfigParam: 5.0E-5s 8.9% 46 \* 0s  
> Profile oxviewconfig::setViewConfigParam: 3.0E-5s 5.54% 36 \* 0s  
> Profile isSearchEngine: 2.0E-5s 2.81% 1 \* 2.0E-5s  
> Profile articleAssignParentInternal: 2.0E-5s 2.81% 5 \* 0s  
> Profile fround: 1.0E-5s 2.22% 9 \* 0s  
> Profile \_applyVAT: 1.0E-5s 1.13% 2 \* 0s  
> cl=oxwcategorytree(show/hide)  
> Memory usage: 7.941 MB (peak: 129.598 MB)  
> System memory usage: 8.75 MB (peak: 130.25 MB)  
> Executed: 2018-07-17 11:32:47  
> Timestamp: 1531819967.0843  
> Execution time:0.0006  
> ----------------------------------------------------------  
> Profile process\_oxwarticledetails: 8.55721s 1396014.31% 1 \* 8.55721s  
> Profile getArticleUri: 0.03015s 4918.98% 6 \* 0.00503s  
> Profile \_createArticleCategoryUri: 0.02631s 4292.49% 2 \* 0.01316s  
> Profile oxNew: 0.02246s 3663.87% 147 \* 0.00015s  
> Profile oxAutoload: 0.0078s 1272.77% 99 \* 8.0E-5s  
> Profile buildTree: 0.00526s 858.3% 1 \* 0.00526s  
> Profile getCategoryUri: 0.00396s 646.48% 23 \* 0.00017s  
> Profile process\_oxwinformation: 0.00301s 490.7% 1 \* 0.00301s  
> Profile process\_oxwcategorytree: 0.00286s 466.9% 2 \* 0.00143s  
> Profile \_getLangTranslationArray: 0.00243s 395.88% 79 \* 3.0E-5s  
> Profile process\_oxwservicemenu: 0.00236s 384.87% 1 \* 0.00236s  
> Profile loadinglists: 0.00211s 344.07% 2 \* 0.00105s  
> Profile process\_oxwservicelist: 0.00182s 296.27% 1 \* 0.00182s  
> Profile process\_oxwcurrencylist: 0.00149s 242.78% 1 \* 0.00149s  
> Profile process\_oxwlanguagelist: 0.00148s 241.77% 1 \* 0.00148s  
> Profile articleAssign: 0.00145s 235.94% 6 \* 0.00024s  
> Profile process\_oxwminibasket: 0.00126s 204.75% 1 \* 0.00126s  
> Profile seoencoder\_loadFromCache: 0.00096s 157.22% 49 \* 2.0E-5s  
> Profile smarty\_function\_oxmultilang: 0.0009s 146.36% 55 \* 2.0E-5s  
> Profile process\_oxwcookienote: 0.00077s 126.29% 1 \* 0.00077s  
> Profile process\_oxwmanufacturerlist: 0.0006s 97.24% 1 \* 0.0006s  
> Profile \_getAmountPrice: 0.00059s 96.42% 1 \* 0.00059s  
> Profile seoencoder\_saveInCache: 0.00038s 62.15% 7 \* 5.0E-5s  
> Profile executeMaintenanceTasks: 0.0003s 49.12% 1 \* 0.0003s  
> Profile \_assignPriceInternal: 0.00012s 18.79% 1 \* 0.00012s  
> Profile oxviewconfig::getViewConfigParam: 5.0E-5s 8.87% 46 \* 0s  
> Profile oxviewconfig::setViewConfigParam: 3.0E-5s 5.68% 37 \* 0s  
> Profile articleAssignParentInternal: 2.0E-5s 2.8% 5 \* 0s  
> Profile isSearchEngine: 2.0E-5s 2.8% 1 \* 2.0E-5s  
> Profile fround: 1.0E-5s 2.22% 9 \* 0s  
> Profile \_applyVAT: 1.0E-5s 1.13% 2 \* 0s
> 
> ```
> cl=details(show/hide)
> Memory usage: 8.066 MB (peak: 129.598 MB)
> System memory usage: 9.25 MB (peak: 130.25 MB)
> Executed: 2018-07-17 11:32:47
> Timestamp: 1531819967.0901
> Execution time:13.4413
> ----------------------------------------------------------
> Profile process_details:	13.44153s	100%	1	*	13.44153s
> Profile process_oxwarticledetails:	8.55721s	63.66%	1	*	8.55721s
> Profile getArticleUri:	0.03015s	0.22%	6	*	0.00503s
> Profile _createArticleCategoryUri:	0.02631s	0.2%	2	*	0.01316s
> Profile oxNew:	0.02259s	0.17%	152	*	0.00015s
> Profile oxAutoload:	0.00782s	0.06%	100	*	8.0E-5s
> Profile buildTree:	0.00526s	0.04%	1	*	0.00526s
> Profile getCategoryUri:	0.00396s	0.03%	23	*	0.00017s
> Profile process_oxwinformation:	0.00301s	0.02%	1	*	0.00301s
> Profile process_oxwcategorytree:	0.00286s	0.02%	2	*	0.00143s
> Profile _getLangTranslationArray:	0.00248s	0.02%	90	*	3.0E-5s
> Profile process_oxwservicemenu:	0.00236s	0.02%	1	*	0.00236s
> Profile loadinglists:	0.00211s	0.02%	2	*	0.00105s
> Profile process_oxwservicelist:	0.00182s	0.01%	1	*	0.00182s
> Profile process_oxwcurrencylist:	0.00149s	0.01%	1	*	0.00149s
> Profile process_oxwlanguagelist:	0.00148s	0.01%	1	*	0.00148s
> Profile articleAssign:	0.00145s	0.01%	6	*	0.00024s
> Profile process_oxwminibasket:	0.00126s	0.01%	1	*	0.00126s
> Profile smarty_function_oxmultilang:	0.001s	0.01%	65	*	2.0E-5s
> Profile seoencoder_loadFromCache:	0.00097s	0.01%	53	*	2.0E-5s
> Profile process_oxwcookienote:	0.00077s	0.01%	1	*	0.00077s
> Profile getArticleMainUri:	0.00069s	0.01%	2	*	0.00034s
> Profile process_oxwmanufacturerlist:	0.0006s	0%	1	*	0.0006s
> Profile _getAmountPrice:	0.00059s	0%	1	*	0.00059s
> Profile seoencoder_saveInCache:	0.00041s	0%	8	*	5.0E-5s
> Profile executeMaintenanceTasks:	0.0003s	0%	1	*	0.0003s
> Profile ! __SAVING CACHE__! (warning):	0.00014s	0%	1	*	0.00014s
> Profile _assignPriceInternal:	0.00012s	0%	1	*	0.00012s
> Profile oxviewconfig::getViewConfigParam:	6.0E-5s	0%	48	*	0s
> Profile oxviewconfig::setViewConfigParam:	4.0E-5s	0%	38	*	0s
> Profile articleAssignParentInternal:	2.0E-5s	0%	5	*	0s
> Profile isSearchEngine:	2.0E-5s	0%	1	*	2.0E-5s
> Profile fround:	1.0E-5s	0%	9	*	0s
> Profile _applyVAT:	1.0E-5s	0%	2	*	0s
> Profile parseThroughSmarty:	0s	0%	1	*	0s
> 
> ```

---

<div class="post-metadata">

**Author:** ![patchwork.de](https://forum.oxid-esales.com/user_avatar/forum.oxid-esales.com/patchwork.de/32/324_2.png) [@patchwork.de](https://forum.oxid-esales.com/u/patchwork.de)\
**Post date:** [July 17, 2018, 10:31am UTC](https://forum.oxid-esales.com/t/die-suche-nach-performance/93711/5 "2018-07-17T10:31:44Z")

</div>

es scheint so dass Indices zumindest bei Tabelle oxarticles fehlen. Evtl auch views neu erstellen …

> **[Database documentation - overview • OXIDforge](https://oxidforge.org/en/database-documentation-overview)**
>
> OXID eShop database documentation Please choose the version of OXID eShop Community Edition to see the appropriate database documentation: OXID eShop series 4.9 OXID eShop series 4.8 OXID eShop series 4.7 OXID eShop series 4.6 OXID eShop series 4.5...

---

<div class="post-metadata">

**Author:** ![Graschi](https://forum.oxid-esales.com/letter_avatar_proxy/v4/letter/g/3e96dc/32.png) [@Graschi](https://forum.oxid-esales.com/u/Graschi)\
**Post date:** [July 17, 2018, 11:15am UTC](https://forum.oxid-esales.com/t/die-suche-nach-performance/93711/6 "2018-07-17T11:15:04Z")

</div>

Inidzes sehen in meinen Augen gut aus:

 ![oxartextends_index](https://forum.oxid-esales.com/uploads/default/original/1X/9ad87267a5bbc3691ae47e2ea7d79ab352187681.png)

 ![oxarticles_index](https://forum.oxid-esales.com/uploads/default/original/1X/3573b08773234b750ac324255d1675205760908f.png)

---

<div class="post-metadata">

**Author:** ![patchwork.de](https://forum.oxid-esales.com/user_avatar/forum.oxid-esales.com/patchwork.de/32/324_2.png) [@patchwork.de](https://forum.oxid-esales.com/u/patchwork.de)\
**Post date:** [July 17, 2018, 12:03pm UTC](https://forum.oxid-esales.com/t/die-suche-nach-performance/93711/7 "2018-07-17T12:03:50Z")

</div>

zum Suchen im Titel muss bei der Anzahl Artikel auch ein Index für oxtitle angelegt sein - wird natürlich bei 1,3 mio Artikel sehr gross.  
Läuft denn der Aufruf eines Artikels von einer Kategorieseite flüssig?

---

<div class="post-metadata">

**Author:** ![Graschi](https://forum.oxid-esales.com/letter_avatar_proxy/v4/letter/g/3e96dc/32.png) [@Graschi](https://forum.oxid-esales.com/u/Graschi)\
**Post date:** [July 17, 2018, 12:27pm UTC](https://forum.oxid-esales.com/t/die-suche-nach-performance/93711/8 "2018-07-17T12:27:56Z")

</div>

> [@patchwork.de](#):
>
> Läuft denn der Aufruf eines Artikels von einer Kategorieseite flüssig?

Jedenfalls deutlich schneller.  
oxwarticledetails  
Execution time:0.9149

details  
Execution time:0.9932

Alles andere im vernachlässigbaren Bereich (0,00x s)

---

<div class="post-metadata">

**Author:** ![patchwork.de](https://forum.oxid-esales.com/user_avatar/forum.oxid-esales.com/patchwork.de/32/324_2.png) [@patchwork.de](https://forum.oxid-esales.com/u/patchwork.de)\
**Post date:** [July 17, 2018, 12:41pm UTC](https://forum.oxid-esales.com/t/die-suche-nach-performance/93711/9 "2018-07-17T12:41:59Z")

</div>

auch da ist sicher noch Verbesserungspotential trotz 1,3mio Artikel - ist aber eine andere Baustelle …  
ich würde mal mit einem zusätzlichen Index auf oxtitle testen (ggf. auch oxtitle\_1 etc.)  
Aber nicht am Live-System! Evtl. steigt phpmyadmin wegen der Datenmenge aus.

---

<div class="post-metadata">

**Author:** ![leofonic](https://forum.oxid-esales.com/user_avatar/forum.oxid-esales.com/leofonic/32/58_2.png) [@leofonic](https://forum.oxid-esales.com/u/leofonic)\
**Post date:** [July 17, 2018, 3:31pm UTC](https://forum.oxid-esales.com/t/die-suche-nach-performance/93711/10 "2018-07-17T15:31:35Z")

</div>

Ein Index wird bei “like ‘%word%’” nicht verwendet. Man könnte das evtl. umschreiben zu “match against” mit Fulltext Index oder eine externe Suche verwenden.

---

<div class="post-metadata">

**Author:** ![vanilla\_thunder](https://forum.oxid-esales.com/user_avatar/forum.oxid-esales.com/vanilla_thunder/32/72_2.png) [@vanilla\_thunder](https://forum.oxid-esales.com/u/vanilla_thunder)\
**Post date:** [July 17, 2018, 3:33pm UTC](https://forum.oxid-esales.com/t/die-suche-nach-performance/93711/11 "2018-07-17T15:33:11Z")

</div>

bei 1,3 Mille glaube ich auch, dass irgendwas nosql-elasticsearch-mäßiges deutlich besser wäre

---

<div class="post-metadata">

**Author:** ![leofonic](https://forum.oxid-esales.com/user_avatar/forum.oxid-esales.com/leofonic/32/58_2.png) [@leofonic](https://forum.oxid-esales.com/u/leofonic)\
**Post date:** [July 17, 2018, 3:50pm UTC](https://forum.oxid-esales.com/t/die-suche-nach-performance/93711/12 "2018-07-17T15:50:15Z")

</div>

Man könnte auch mal die Anzahl der Felder reduzieren und die die man braucht in ein Feld zusammenkopieren, wird sowieso nicht sortiert, und dieses Feld in oxarticles ablegen dann fällt schonmal der Join weg.

PS: der Grund warum die Suche beim einzelnen Artikel nochmal ausgeführt wird, und der Shop daher beim einzelnen Artikel nicht schneller als bei der Suche selbst ist, ist der Locator, um die Position des Artikels beim “vorheriger/nächster Artikel” und “zurück zur Übersicht” zu bestimmen.

---

<div class="post-metadata">

**Author:** ![Graschi](https://forum.oxid-esales.com/letter_avatar_proxy/v4/letter/g/3e96dc/32.png) [@Graschi](https://forum.oxid-esales.com/u/Graschi)\
**Post date:** [July 17, 2018, 6:22pm UTC](https://forum.oxid-esales.com/t/die-suche-nach-performance/93711/13 "2018-07-17T18:22:34Z")

</div>

> [@leofonic](#):
>
> PS: der Grund warum die Suche beim einzelnen Artikel nochmal ausgeführt wird, und der Shop daher beim einzelnen Artikel nicht schneller als bei der Suche selbst ist, ist der Locator, um die Position des Artikels beim “vorheriger/nächster Artikel” und “zurück zur Übersicht” zu bestimmen

Das ist ein guter Hinweis, danke. Denn ich habe bisher nicht verstanden wieso er beim Aufruf des gleichen Artikels länger braucht als aus der Kategorie heraus.

Das bedeutet, dass er sich die Suche speichert und dann immer wieder erneut ausführt?  
Da muss sich drüber nachdenken. Ist es möglich diese Funktion ggf. abzuschalten?

> [@leofonic](#):
>
> Man könnte auch mal die Anzahl der Felder reduzieren und die die man braucht in ein Feld zusammenkopieren, wird sowieso nicht sortiert, und dieses Feld in oxarticles ablegen dann fällt schonmal der Join weg

Könntest du mir dazu ein Beispiel nennen?

> [@vanilla\_thunder](#):
>
> bei 1,3 Mille glaube ich auch, dass irgendwas nosql-elasticsearch-mäßiges deutlich besser wäre

Wenn man natürlich ständig sucht, dann ist das richtig. Mir was diese Funktion bisher nicht bewusst. Ich glaube aber dass 95% der Kunden nach einer Suche den Artikel aufrufen und von da aus nicht zurück zur Suche wollen und nicht durch die Suchergebnisse scrollen möchten. Das wird in der Regel vorher passieren. Insofern wäre es vll. tatsächlich ein Ansatz hier zu optimieren.

---

<div class="post-metadata">

**Author:** ![leofonic](https://forum.oxid-esales.com/user_avatar/forum.oxid-esales.com/leofonic/32/58_2.png) [@leofonic](https://forum.oxid-esales.com/u/leofonic)\
**Post date:** [July 18, 2018, 6:56am UTC](https://forum.oxid-esales.com/t/die-suche-nach-performance/93711/14 "2018-07-18T06:56:49Z")

</div>

> [@Graschi](#):
>
> Das bedeutet, dass er sich die Suche speichert und dann immer wieder erneut ausführt?  
> Da muss sich drüber nachdenken. Ist es möglich diese Funktion ggf. abzuschalten?

Das ist in Application/Component/Locator::\_setSearchLocatorData. Könnte man abschalten wenn man die entsprechenden Links aus dem Template nimmt. Oder du schaust dir beim Searchcontroller die Methode “getAddUrlParams” an, da werden die Parameter an die Artikelurl gehängt wodurch der Artikel als Teil einer Suche geladen wird.

> [@Graschi](#):
>
> Könntest du mir dazu ein Beispiel nennen?

Du kannst im Backend die Felder eintragen in denen gesucht wird. Da könntest du ein Feld eintragen dass du selbst in oxarticles erstellst, z.B. “searchdata”, und in dieses Feld schreibst du per cronjob alle Wörter rein unter denen der Artikel gefunden werden soll. Ob das was bringen würde kannst du mal grob testen indem du die Felder mal reduzierst, indem du z.B. oxtags entfernst fällt schon mal der Join weg.

---

<div class="post-metadata">

**Author:** ![Graschi](https://forum.oxid-esales.com/letter_avatar_proxy/v4/letter/g/3e96dc/32.png) [@Graschi](https://forum.oxid-esales.com/u/Graschi)\
**Post date:** [July 24, 2018, 8:15am UTC](https://forum.oxid-esales.com/t/die-suche-nach-performance/93711/15 "2018-07-24T08:15:02Z")

</div>

Ich habe nun ein wenig experimentiert

> [@leofonic](#):
>
> Ob das was bringen würde kannst du mal grob testen indem du die Felder mal reduzierst, indem du z.B. oxtags entfernst fällt schon mal der Join weg.

Ich habe testweise alles rausgenommen aus “oxsearchkeys”. Dort könnte ich in der Theorie ja auch ohne eigenes Feld verschiedene Begriffe eingeben.  
Leider hat das keinen Unterschied gemacht.  
Daher habe ich mir diesen Teil hier angesehen:

> [@leofonic](#):
>
> Das ist in Application/Component/Locator::\_setSearchLocatorData. Könnte man abschalten wenn man die entsprechenden Links aus dem Template nimmt. Oder du schaust dir beim Searchcontroller die Methode “getAddUrlParams” an, da werden die Parameter an die Artikelurl gehängt wodurch der Artikel als Teil einer Suche geladen wird.

Das scheint grundsätzlich nur zu funktionieren, wenn ich SEO Urls ausschalte, richtig?  
Um das zu testen habe ich in der config.inc.php “$this-\>blSeoMode = false;” hinzugefügt.

Damit konnte ich in den URLs ein bisschen “spielen”.  
Wenn ein Artikel aus der Suche heraus aufgerufen wird sieht die URL so aus:

index.php?cl=details&anid=01110cca4bb1b6d25e76dec616aa3cde&listtype=search&searchparam=12395-KFL-850

wenn ich nun die URL so manipuliere, dass listtype nicht “search” sondern “list” ist und “searchparam” entferne erhalte ich eine sehr schnelle Ladezeit.

Das Problem: Wird dabei ein Artikel geöffnet, der keiner Kategorie zugeordnet ist, dann steht da “Artikel von” weil die fehlenden Informationen nicht übermittelt werden können.  
Das kann man sicherlich über ds Template abfangen.  
Der “Zur Übersicht” Button funktioniert so natürlich auch nicht.

Könnte man hier auf die Suche zurückspringen? Also komme ich ohne diese Parameter in der URL anzugeben noch irgendwie an diese Informationen heran?  
Wenn ich es richtig verstehe wird im searchcontroller in der Funktion getAddUrlParams einfach nur ein URL Aufbau vorgenommen und durch listtype und den searchparam wird signalisiert, dass der Artikel aus einer Suche heraus aufgerufen wird.

Wenn ich nun einen eigenen Parameter definiere (customsearchparam) könnte ich diesen im Template verarbeiten und damit einen neuen Link generieren?  
Der Kunde könnte dann zumindest zur Suche zurückkehren.

Dann bliebe nur noch das Problem: Wieso funktioniert das nicht mit SEO Urls? Gibt es dafür noch einen Workaround?

---

<div class="post-metadata">

**Author:** ![leofonic](https://forum.oxid-esales.com/user_avatar/forum.oxid-esales.com/leofonic/32/58_2.png) [@leofonic](https://forum.oxid-esales.com/u/leofonic)\
**Post date:** [July 24, 2018, 4:51pm UTC](https://forum.oxid-esales.com/t/die-suche-nach-performance/93711/16 "2018-07-24T16:51:29Z")

</div>

> [@Graschi](#):
>
> Wieso funktioniert das nicht mit SEO Urls?

Das funktioniert auch mit SEO-Urls. Die Parameter können alle entfernt werden, listtype “list” ist nicht notwendig. Den Zurück-Button könnte man einfach mit Javascript window.history.go(-1) machen.

---

<div class="post-metadata">

**Author:** ![Graschi](https://forum.oxid-esales.com/letter_avatar_proxy/v4/letter/g/3e96dc/32.png) [@Graschi](https://forum.oxid-esales.com/u/Graschi)\
**Post date:** [August 9, 2018, 9:39am UTC](https://forum.oxid-esales.com/t/die-suche-nach-performance/93711/17 "2018-08-09T09:39:02Z")

</div>

> [@leofonic](#):
>
> Das funktioniert auch mit SEO-Urls.

Sobald ich in der config.inc $this-\>blSeoMode = false; auf true setze greifen meine Änderungen nicht mehr.  
Die Ladezeit ist dann auch wieder wie vorher.

Ich muss das sicherlich noch in ein Modul umbauen aber testweise habe ich folgende Elemente auskommentiert:

in der search.tpl in der Funktion getAddUrlParams():

 ![2018-08-09%2011_35_58-Window](https://forum.oxid-esales.com/uploads/default/original/1X/c817230c0847bdcafb9cd3bdfe215af14e54e9fd.png)

> [@leofonic](#):
>
> Den Zurück-Button könnte man einfach mit Javascript window.history.go(-1) machen.

Das widerum funktioniert gut:  
in der details.tpl:

 ![2018-08-09%2011_24_57-Window](https://forum.oxid-esales.com/uploads/default/original/1X/d98d6815d6273b76ea11f3e68b80e8cc16e0f5fa.png)

> [@leofonic](#):
>
> Du kannst im Backend die Felder eintragen in denen gesucht wird. Da könntest du ein Feld eintragen dass du selbst in oxarticles erstellst, z.B. “searchdata”, und in dieses Feld schreibst du per cronjob alle Wörter rein unter denen der Artikel gefunden werden soll. Ob das was bringen würde kannst du mal grob testen indem du die Felder mal reduzierst, indem du z.B. oxtags entfernst fällt schon mal der Join weg.

> [@Graschi](#):
>
> Ich habe testweise alles rausgenommen aus “oxsearchkeys”

Das hier habe ich auch nochmal geprüft. Beispielhaft ein Statement das dadurch ausgeführt wird:

 ![2018-08-09%2011_38_34-Window](https://forum.oxid-esales.com/uploads/default/original/1X/8fd0d58b3ec629bab47cbe74242428de920873ff.png)

Das Statement über phpmyadmin ausgeführt dauert über 6 Sekunden. Nach zwei-dreimaliger Ausführung nur noch 0,005 Sekunden. Scheint also dann gecached zu werden.  
Ich denke hier ist das LIKE ein Problem. Ersetze ich es durch eine = Suche dauert die Abfrage 0.0067 Sekunden. Die LIKE-Suche ist natürlich komfortabel um viele Artikel zu finden. Die Idee wäre nun alle String, die als Suchstring im Backend angegeben sind, für die Ergebnismenge zu nutzen. Also Beispiel:  
Artikelnummer: 124-456-789  
Titel: CYL-HEAD  
Suchstring: 124-456-789,124456789, CYL-HEAD,CYLHEAD

SQL: … WHERE oxsearchkeys=124-456-789 OR oxsearchkeys=124456789 OR oxsearchkeys=CYL-HEAD OR oxsearchkeys=CYLHEAD

Das würde natürlich ein wenig Komfort einbüßen, man würde aber die Ergebnisse über das Backend beeinflussen können.  
Würde das Sinn ergeben. Habt ihr andere Vorschläge?

---

<div class="post-metadata">

**Author:** ![leofonic](https://forum.oxid-esales.com/user_avatar/forum.oxid-esales.com/leofonic/32/58_2.png) [@leofonic](https://forum.oxid-esales.com/u/leofonic)\
**Post date:** [August 11, 2018, 1:00pm UTC](https://forum.oxid-esales.com/t/die-suche-nach-performance/93711/18 "2018-08-11T13:00:38Z")

</div>

Wenn man das like weglässt, kann man kein wildcard verwenden, so würde nur das gefunden werden was exakt so im Feld steht. Dazu bräuchte man einen inverted index wie er z.B. von Elasticsearch/Lucene verwendet wird.

---

<div class="post-metadata">

**Author:** ![Graschi](https://forum.oxid-esales.com/letter_avatar_proxy/v4/letter/g/3e96dc/32.png) [@Graschi](https://forum.oxid-esales.com/u/Graschi)\
**Post date:** [August 12, 2018, 12:42pm UTC](https://forum.oxid-esales.com/t/die-suche-nach-performance/93711/19 "2018-08-12T12:42:45Z")

</div>

> [@leofonic](#):
>
> Wenn man das like weglässt, kann man kein wildcard verwenden, so würde nur das gefunden werden was exakt so im Feld steht.

Weiß ich und versuchte ich zu beschreiben:

> [@Graschi](#):
>
> Die LIKE-Suche ist natürlich komfortabel um viele Artikel zu finden. Die Idee wäre nun alle String, die als Suchstring im Backend angegeben sind, für die Ergebnismenge zu nutzen. Also Beispiel:  
> Artikelnummer: 124-456-789  
> Titel: CYL-HEAD  
> Suchstring: 124-456-789,12

Man müsste das nun so umbauen, dass die Benutzereingabe jeweils mit einer =Suche gegen jeden durch Komma separierten Teilstring geht. Ggf. müsste oxsearchkeys aufgeteilt werden.

Man würde dadurch Komfort verlieren weil eben der Benutzer nur wenige Varianten hat um einen Artikel zu finden wenn man sich aber auf die wichtigsten beschränkt (bei einer Artikelnummer mit und ohne Bindestrich) wäre es ein Performancegewinn.

Mir fällt eben sonst nicht ein wie das optimiert werden sollte. Vorschläge nehme ich gerne an.

---

<div class="post-metadata">

**Author:** ![mws\_1941](https://forum.oxid-esales.com/user_avatar/forum.oxid-esales.com/mws_1941/32/65_2.png) [@mws\_1941](https://forum.oxid-esales.com/u/mws_1941)\
**Post date:** [August 12, 2018, 1:14pm UTC](https://forum.oxid-esales.com/t/die-suche-nach-performance/93711/20 "2018-08-12T13:14:11Z")

</div>

Eine echte Volltextsuchmaschine verwenden. Solr oder Elasticsearch z.B.

Gruss  
Marcel

[Next page](https://forum.oxid-esales.com/t/die-suche-nach-performance/93711.md?page=2)
