Issue
The values viewCount or viewCount_sortable are not being updated when users visit content displayed on a Display Page. However, the values are correctly updated in the ViewCountEntry table.
Environment
- Quarterly Releases
Resolution
In a recent analysis of platform performance, a specific behavior was introduced through LPSA-40295. However, it was later identified that updating the index automatically caused significant performance degradation under high demand.
Updating this specific value in the indexes led to slower platform response times when processing a high volume of requests. To mitigate this performance issue, the decision was made to avoid automatic index updates for this value. Instead, the change ensures that the value is only updated in the database automatically or when the associated asset is explicitly modified in the indexes. You can find more details about this improvement in LPSA-49468.
To handle this behavior effectively, you have the following options:
-
Use the Value Stored in the Database
Rely on the value stored in the database for any necessary operations. This avoids relying on the indexed value and ensures consistency with the latest updates. -
Manage Reindexing Periodically
If the indexed value is crucial for your processes, you can create a custom Scheduler to handle periodic reindexing. The Scheduler would:- Read the updated value from the database.
- Reindex the value as needed, ensuring it reflects the latest state.