Expand my Community achievements bar.

Comments Extension - 100+ comments on page load

Avatar

Community Advisor

Hello All,

I have extended OOTB comments and being able to customize UI as required. The component provides ability to show configurable number of comments. By default it is 10. If we set it to say 500 then on page load max 500 comments will appear.

For certain pages for us where there are about 100 comments and authored limit is 1000, the page tries to load all 100 comments but the page loads very slowly (~ 2-5 minutes) Where we can always set the limit to 10 per page but since this value is configurable authors might tend to set it to more.

Is this expected behavior?

We are using MongoDB for UGC storage and have Solr set up with that. Solr indexes every property with *_s.

In logs I see something lie this

29.08.2017 11:31:31.848 *DEBUG* [172.25.66.240 [1504035271266] GET my-page-path.html HTTP/1.1] com.adobe.cq.social.srp.utilities.impl.SocialResourceUtilitiesImpl Default configuration path: /content/usergenerated/asi/mongo time: 0

29.08.2017 11:32:55.212 *DEBUG* [172.25.66.240 [1504035260410] GET /my-page-path.html HTTP/1.1] com.adobe.cq.social.srp.internal.AbstractCache Updating cache for [/content/usergenerated/asi/mongo/my-page-path/jcr:content/comments/sdfsdf-YK1v, social/commons/components/comments/comment]: 1

29.08.2017 11:32:55.212 *DEBUG* [172.25.66.240 [1504035260410] GET my-page-path.html HTTP/1.1] com.adobe.cq.social.srp.internal.UGCCResourceProvider Reply counts for: /content/usergenerated/asi/mongomy-page-path/jcr:content/comments/sdfsdf-YK1v 1

If we see above there is a difference of ~1 min 24 sec in this case (variable)

Please let me know if there is any config change required.

Thanks

5 Replies

Avatar

Administrator

I have asked the internal team to have a look at this one.

~kautuk



Kautuk Sahni

Avatar

Community Advisor

Update:

Adding some logs. The delay seems to be between below two entries..I got this when I added logger for com.adobe.cq.social.srp

01.09.2017 14:11:08.343 *DEBUG* [0:0:0:0:0:0:0:1 [1504289468204] GET /content/path-to-page/page.html HTTP/1.1] com.adobe.cq.social.srp.internal.AbstractCache Cache MISS or EXPIRED: [/content/usergenerated/asi/mongo/content/path-to-page/page/jcr:content/blog_comments/great_job_hq_print-J6Vq, social/commons/components/comments/comment]

01.09.2017 14:12:05.878 *DEBUG* [0:0:0:0:0:0:0:1 [1504289468204] GET /content/path-to-page/page.html HTTP/1.1] com.adobe.cq.social.srp.internal.AbstractCache Updating cache for [/content/usergenerated/asi/mongo/content/path-to-page/page/jcr:content/blog_comments/congratulations_gent-hLhj, social/commons/components/comments/comment]: 1

Avatar

Administrator

This case requires some debugging. I would request you to create a support ticket for this.

~kautuk



Kautuk Sahni

Avatar

Community Advisor

Thanks Kautuk. It seems I mistakenly created this as a discussion it was rather a question. I will proceed for support ticket