Forum Discussion
ttadej
8 years agoAdvisor
Would also like to know if simple calls like this:
<#local threadRepliesCountQuery = "SELECT count(*) FROM messages WHERE parent.id = '${threadId!}'" /> <#local threadRepliesCount = rest(API_VERSION, "/search?q=" + threadRepliesCountQuery?url).data.count!0 />
versus this
<#local threadRepliesCount = rest("/messages/id/${(threadId)!}/replies/direct/count").value!?number />
are any different in terms of performance or if one is recommended over the other. Sometimes the brevity of v1 is nice.
Related Content
- 3 months ago
- 4 months ago
- 9 days ago
- 2 months ago