Details
-
Bug
-
Status: Closed
-
Resolution: Fixed
-
6.2.X EE, 7.0.0 DXP FP1, 7.0.2 CE GA3, 7.0.0 DXP SP2, Master
-
7.0.x, 6.2.x
-
Committed
-
1.5
-
4
-
Regression Bug
Description
There are throughput issues in both search engine and Liferay installation after installing solutionLPS-65978
That LPS increases reindexation requests to elasticsearch/solr/lucene
CPU consumption is also increased: all the Indexer "doReindex" logic is executed but only one field is modified (ratings, viewCount, etc...) so a lot of unnecessary database queries and calculations are done.
Solution Notes
Changes introduced in the fix for (affecting when fields 'ratings' and 'viewCount' get updated in the search index) have been reverted. In addition, these fields will no longer be indexed in the BaseIndexer class for AssetEntry objects as of the next Liferay version.LPS-65978
Why was this change made?
Keeping the Ratings and View Count options in the search index in sync with the database has a negative impact on normal operations due to the significantly increased number of index Write requests causing throughput issues and, therefore, performance degradation.
In addition, the view count is not always up-to-date in the database. This behavior is controlled by the Buffered Increment mechanism. You can find more information about this in the portal.properties file.
Attachments
Issue Links
- is caused by
-
LPS-65978 Fields 'ratings', 'visible' and 'viewCount' are not updated in index when they are updated in database (AssetEntry / Ratings) without modification of own object (JournalArticle, DLFileEntry...)
- Closed
- relates
-
LPS-90958 Dynamic Asset List does not order by view count
- Closed
-
LPS-173765 "viewCount" indexed as text, should be "keyword" or "long"
- Closed
-
LPE-15892 Throughput issues due to the increased number of search write requests after LPS-65978
-
- Closed
-