Projekt

Allgemein

Profil

Aktionen

GX-Feature #70803

offen

Speichern von Varianten-Artikelnummern in der Tabelle products_description zur Optimierung der Shopsuche | Storing variant models in table products_description to optimize search

Von Jan-Olof Kratzke vor 5 Monaten hinzugefügt.

Status:
Gemeldet
Priorität:
Normal
Zugewiesen an:
-
Kategorie:
Optionen
Zielversion:
-
% erledigt:

0%

Geschätzter Aufwand:
Steps to reproduce:
Betroffene Versionen:
Unbestimmt
Release Notes Langtext:

Beschreibung

Die Suche in Varianten kann eine hohe Serverauslastung verursachen. Ein gängiger Workaround ist das Eintragen der Artikelnummern in das Feld 'Zusatzbegriffe für Suche' der Artikelmaske. Das Feld bzw. die Tabellenspalte 'products_keywords' der Tabelle 'products_description' ist jedoch mit dem Datentyp varchar(255) oft nicht in der Lage alle benötigten Artikelnummern zu fassen. Zudem ist das händische Eintragen ein zusätzlicher Aufwand, der ebenfalls die Gefahr einer fehlerhaften Eingabe birgt.

Es sollten daher folgende Änderungen vorgenommen werden:

  • Hinzufügen einer Spalte, z.B. 'properties_models', eines Datentyps mit ausreichender Kapazität (z.B. 'text') zu der Tabelle 'products_description'
  • Berücksichtigen der Spalte 'properties_models' bei der Artikelsuche
  • Übernahme der Inhalte der Spalte 'combi_model' der Tabelle 'products_properties_combis' für alle Varianten des Artikels in die neue Spalte 'properties_models' beim Anlegen oder Speichern/Aktualisieren der Varianten. Hierbei muss berücksichtigt werden, dass mehrere Einträge mit einem entsprechendem Trennzeichen (typischerweise einem Komma) hinterlegt werden.

Search within variants can cause high server workload. A common workaround is to enter the model numbers of the variants into the field 'Extra words for search' of the products mask. The field and the cloumn 'products_keywords' of the table 'products_description' with the type varchar(255) respectively might not be able to store all model numbers needed. Additionally this is both cumbersome and error-prone für the shop-operator.

Therefor the following changes should be made:

  • Adding a column, for instance 'properties_models', with a type of sufficient capacity (such as 'text') to the table 'products_description'
  • Include the new colum 'properties_models' into the product search
  • Store the contents of the column 'combi_model' of the table 'products_properties_combis' for all variants of the product in the new column 'properties_models' whenever variants are created and/or updated. Whenever several entries are made, a separator (typically the comma) has to be put betwenn the entries.

Nichts anzuzeigen

Aktionen

Auch abrufbar als: Atom PDF