Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET POP3

 AfterLogic Forum : MailBee.NET POP3
Subject Topic: Performance Issue Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Mhd
Newbie
Newbie


Joined: 18 February 2008
Location: United Kingdom
Online Status: Offline
Posts: 38
Posted: 23 February 2008 at 11:51am | IP Logged Quote Mhd

Hi, we receive a lot of emails, we afraid from keeping the MessagingIDs in text file, this text file will have a huge of messages IDs and we afraid that will affect on the performance when the system try to fetch a Message ID.
Is there away that periodaclly allow us to delete this file's content to make it less in size?
Back to Top View Mhd's Profile Search for other posts by Mhd
 
Andrew
AfterLogic Support
AfterLogic Support


Joined: 28 April 2006
Location: United States
Online Status: Offline
Posts: 1189
Posted: 24 February 2008 at 3:57am | IP Logged Quote Andrew

Apparently, you mean keeping message UIDs (not Message-IDs) to let your application to know which message is downloaded, which is not.

If your or any external application periodically deletes messages from the POP3 mailbox, you may implement cleaning message UIDs list. I.e. your application should receive list of UIDs from the mail server via Pop3.GetMessageUids method, then remove from the text file all UIDs which don't exist on the mail server. So, you'll get rid of obsolete UIDs.

Another way is to use a database instead of a text file. In such case, performance won't depend (almost) on number of stored UIDs because all database engines provide very efficient search algorithms.

Best regards,
Andrew
Back to Top View Andrew's Profile Search for other posts by Andrew
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide