Issue Details (XML | Word | Printable)

Key: MDL-14651
Type: Sub-task Sub-task
Status: Open Open
Priority: Minor Minor
Assignee: Dongsheng Cai
Reporter: Dongsheng Cai
Votes: 0
Watchers: 3
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle
MDL-8224

Ajax Chat Module

Created: 02/May/08 10:27 AM   Updated: 17/Dec/08 11:15 AM
Component/s: Chat
Affects Version/s: 2.0
Fix Version/s: 2.0

File Attachments: 1. File chat.1.1.1.tar.bz2 (59 kB)
2. File chat.1.1.tar.bz2 (61 kB)

Environment: Ubuntu, apache2, php5

Participants: Dongsheng Cai and Martin Dougiamas
Security Level: None
QA Assignee: Eloy Lafuente (stronk7)
Affected Branches: MOODLE_20_STABLE
Fixed Branches: MOODLE_20_STABLE


 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Dongsheng Cai added a comment - 13/Jun/08 11:38 AM - edited
I created a new chat module GUI, which is using ajax to update messages.

The GUI is pretty rough currently, I will continue to optimize it.
And to improve performance, table structure changed, see MDL-11899.


Dongsheng Cai added a comment - 13/Jun/08 11:39 AM
See Attachment.

Dongsheng Cai added a comment - 13/Jun/08 02:14 PM
UI changed.

Please do *disable* firebug when you are using it, because too many ajax connection may crash firefox.


Dongsheng Cai added a comment - 13/Jun/08 04:03 PM - edited
I am planning to add cache to chat module to improve performance, this is the plan:

Before insert the new chat message into database, push the message into a cache file (/dev/shm, which can hold 100 messages), when user request the lastest messages, we compare the oldest messsage's timestamp $a with user's timestamp $b, if $a<$b, directly response messages in cache, otherwise, fetch the messages from database.

Any advice?


Dongsheng Cai added a comment - 16/Jun/08 04:46 PM
1. Improve GUI
2. Use /dev/shm to cache users list (UNIX) only, this can improve performance (I will cache latest user messages later)

Dongsheng Cai added a comment - 17/Jun/08 01:38 PM
Please give me some feedbacks to help me improve it. Thanks

Martin Dougiamas added a comment - 06/Oct/08 02:14 PM
Will this fall back to alternative methods on Windows servers?