Khoros Atlas Logo

%3CLINGO-SUB%20id%3D%22lingo-sub-533782%22%20slang%3D%22en-US%22%3EGetting%20all%20messages%20in%20the%20community%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-533782%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20All%2C%3CBR%20%2F%3E%3CBR%20%2F%3EGood%20day!%3CBR%20%2F%3E%3CBR%20%2F%3EIve%20created%20a%20custom%20endpoint%20to%20pull%20all%20the%20messages%20by%20getting%20the%20count%20first%20then%20setting%20it%20as%20LIMIT.%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3EI%20just%20like%20to%20ask%20if%20this%20is%20the%20best%20way%20to%20pull%20the%20messages%20from%20our%20community.%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3EThanks!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-534811%22%20slang%3D%22en-US%22%3ERe%3A%20Getting%20all%20messages%20in%20the%20community%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-534811%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.khoros.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F78967%22%20target%3D%22_blank%22%3E%40KevinSaquing%3C%2FA%3E%2C%3C%2FP%3E%3CP%3EYes%20you%20are%20doing%20a%20nice%20way%20to%20get%20all%20messages%20from%20community%20by%20using%20count%20query%20first.%3C%2FP%3E%3CP%3EAre%20you%20going%20to%20show%20this%20somewhere%20in%20your%20community%3F%20If%20YES%2C%20then%20you%20will%20mess-up%20with%20performance%20issue%20on%20community%20for%20this%20page.%3C%2FP%3E%3CP%3EIf%20you%20are%20doing%20this%20for%20export%20messages%2C%20try%20to%20make%20it%20using%20limit%20the%20query%20and%20add%20page_size%20for%20next%20numbers%20of%20results%20in%20the%20your%20query.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Advisor
Advisor

Getting all messages in the community

Hi All,

Good day!

Ive created a custom endpoint to pull all the messages by getting the count first then setting it as LIMIT. 

I just like to ask if this is the best way to pull the messages from our community. 

Thanks!

Tags (2)
0 Kudos
1 Reply 1
Highlighted
Honored Contributor
Honored Contributor

Re: Getting all messages in the community

@KevinSaquing,

Yes you are doing a nice way to get all messages from community by using count query first.

Are you going to show this somewhere in your community? If YES, then you will mess-up with performance issue on community for this page.

If you are doing this for export messages, try to make it using limit the query and add page_size for next numbers of results in the your query.

 

 

.......
Do you know we work with Kudos and Accepted Solution.
Reply
Loading...