Forum Discussion
ttadej
7 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 years ago
- 5 years ago
- 10 years ago