Is it possible to optimize? - WeOnlyDo Discussion board

Is it possible to optimize? (General questions)

by ab, Thursday, March 17, 2011, 13:59 (4811 days ago)

Hi WOD!
We just continuing to optimize work of our IMAP server.
And we have a question about ListMessages event.
Currently we have to fill Folder with messages from database every new user session. For example for folder with 10000 messages it is a 10000 ImapMessages have to be created and added to ImapFolder each connection time. Is it possible to avoid fetching old messages, which were already sent to client, and add to folder only new messages. I guess when connected, IMAP client request only messages with UID > some stored value for this folder. So is it some way to get this UID and skip all olders?
Thanx for advance.
Anton

Re: Is it possible to optimize?

by wodDamir, Thursday, March 17, 2011, 18:20 (4811 days ago) @ ab

Hi Anton,

Actually, when user connects Imap client requests UIDs of all the available messages. Otherwise, he wouldn't know if any of the old messages were deleted or present at all and wouldn't sync.

This is why all the messages need to be added at this point.

Regards,
Damba