[Building Sakai] get all chat messages for a channel

Zhen Qian zqian at umich.edu
Mon Feb 25 08:43:07 PST 2013


In that case, the limit of 10 is a good choice :) Background processing is
a good idea.

We will test the message limit increase effect via load test here.

Thanks,

- Zhen


On Mon, Feb 25, 2013 at 11:24 AM, Matthew Jones <matthew at longsight.com>wrote:

> Yea you're right about that max. The entity has a defined max of 10, and
> the service has a defined max of 100 (which is alterable via the property).
>
> Increasing either of those limits "too high" could lead to performance
> problems, though we usually increase them to be higher than 100. Like some
> other tools, it's not exactly known what too high is.
>
> I'm thinking that if the entitybroker interface for chat was ever written
> to create a dump of all messages (Say a chat room had hypothetically a
> million messages) it would have to run asynchronously and deliver the file
> when it was done compiling the messages. This is would be another good use
> case for a background processing service.
>
>
>
> On Mon, Feb 25, 2013 at 11:17 AM, Zhen Qian <zqian at umich.edu> wrote:
>
>> Thanks, Adrian.
>>
>> I found the default returned size if of 10 chat messages, so I have added
>> the items param to get more
>>
>> http://localhost/direct/chat-message.json?channelId=CHANNEL_ID&items=N
>>
>> However, the return list seems to be limited to recent 100 (though
>> claimed to be fixed in SAK-20928).
>>
>> - Zhen
>>
>>
>> On Mon, Feb 25, 2013 at 11:08 AM, Adrian Fish <adrian.r.fish at gmail.com>wrote:
>>
>>> Hi Zhen,
>>>
>>> This gets the channel ids for a site ...
>>>
>>> http://localhost/direct/chat-channel.json?siteId=SITE_ID
>>>
>>> This gets your messages for a channel id thus returned ...
>>>
>>> http://localhost/direct/chat-message.json?channelId=CHANNEL_ID
>>>
>>> CHANNEL_ID is the id attribute that comes back from the first call.
>>>
>>> Cheers,
>>> Adrian.
>>>
>>>
>>> On 25 February 2013 15:49, Zhen Qian <zqian at umich.edu> wrote:
>>>
>>>> Hi, all:
>>>>
>>>> How can I get all the chat messages for a given channel, via the
>>>> "/direct" RESTful url?
>>>>
>>>> I have tried
>>>>
>>>> https://{server_url}/direct/chat-message?channelId={channel_id}
>>>>
>>>> and
>>>>
>>>> https://{server_url}/direct/chat-channel/{channel_id}
>>>>
>>>> However, the first url returns 0 messages, and the latter returns the
>>>> channel entity information.
>>>>
>>>> Thanks,
>>>>
>>>> - Zhen
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> sakai-dev mailing list
>>>> sakai-dev at collab.sakaiproject.org
>>>> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>>>>
>>>> TO UNSUBSCRIBE: send email to
>>>> sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of
>>>> "unsubscribe"
>>>>
>>>
>>>
>>
>> _______________________________________________
>> sakai-dev mailing list
>> sakai-dev at collab.sakaiproject.org
>> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>>
>> TO UNSUBSCRIBE: send email to
>> sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of
>> "unsubscribe"
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20130225/5d04c91a/attachment.html 


More information about the sakai-dev mailing list