Comment thread objects (MBDiscussion, MBThread and root MBMessage) are created during asset creation, but that it is not necessary as CommentManager also handle it
Description
Testing discovered
causes
Activity
Show:

Adolfo Pérez Álvarez June 9, 2016 at 7:44 AM
Marking as "impediment", as it cannot be done before the release.

Sergio Gonzalez June 9, 2016 at 6:17 AM
For reference: https://github.com/adolfopa/liferay-portal/pull/286

Adolfo Pérez Álvarez June 1, 2016 at 3:24 AM
Lowering priority, as this is more a performance issue when reindexing than a loss of functionality.
Fixed
Details
Assignee
Melody WuMelody WuReporter
Jorge DíazJorge DíazBranch Version/s
7.0.xBackported to Branch
CommittedFix Priority
3Git Pull Request
7.0 Fix Pack Version
3Story Points
1Components
Fix versions
Affects versions
Priority
Medium
Details
Details
Assignee

Reporter

Branch Version/s
7.0.x
Backported to Branch
Committed
Fix Priority
3
Git Pull Request
7.0 Fix Pack Version
3
Story Points
1
Components
Fix versions
Affects versions
Priority
Zendesk Support
Linked Tickets
Zendesk Support
Linked Tickets
Zendesk Support

Linked Tickets
Created May 26, 2016 at 9:43 AM
Updated June 25, 2023 at 11:24 PM
Resolved September 1, 2016 at 2:42 PM
In was added some logic in order to create all comment thread structure during asset creation (MBDiscussion, MBThread and root MBMessage objects) but that it is not necessary as CommentManager also handle it during comment creation.
After some testing we have detected that all MBThread entries causes an overhead in the system, for example:
During staging reindex operation, a 30% of improvement is obtained deactivating deleting all those objects, and comment functionality is not affected.
During full reindex operation, some customers have reported that 25%-50% of the time is spent during MBThread reindex
In order to improve throughput, we should:
Remove all comment creation logic from assets creation (JournalArticleLocalServiceImpl.addArticle, BlogsEntryLocalServiceImpl.addEntry, Layout, ....)
Clean all unused objects during upgrade to 7.0