Search and Marketing statistics in WebSphere Commerce

In a typical deployment model, business users typically do not have access to the production system. The situation is different when business users want to review live production data, such as search and marketing statistics. In this case, the data must be replicated into a staging or authoring environment to be viewed in the Management Center. The production system is not impacted by the data replication operation. It is the staging or authoring system that pulls the production data back into the staging database, without involving any production CPU cycles. The DownloadStatistics scheduler command does statistics replication from production into the staging or authoring environment. DownloadStatistics reads the search section in the wc-component.xml file from the Infrastructure component for the tables to replicate.

The following code is an example of the DownloadStatistics scheduler job configuration in the infrastructure component wc-component.xml file:

Once search statistics are enabled in production, set up the replication scheduler job in the staging area. This step is necessary so that business users can view the search statistics without the need for a production connection. The following search and marketing statistics tables are configured by default:

These tables contains data that represents statistics data from the Marketing component and WebSphere Commerce Search.

Note: On the system to which data is replicated, that system cannot collect statistics from its local environment. For example, if search statistics is configured to be replicated from production to staging, then the staging environment can be used only to review production search statistics. It cannot have search statistics enabled in the staging environment. This restriction is to avoid key collision in the staging database.

We must ensure that the SRCHSTAT table in the staging and production system is regularly cleaned (dbclean) to maintain overall performance when search statistics are enabled.


Tuning search statistics

We can configure search statistics properties in the catalog component configuration file (wc-component.xml) file. See Search properties in the component configuration file (wc-component.xml).