Thanks for your reply.
So, you're suggesting me to store all the messages in the database instead of writing all the messages to a file(xml)?

But, would that be efficient?
Everytime, a new message posted we have to add it to the database.
I believe writing to a database will take longer time than writing to a file (please correct me if this is wrong).

xyoon wrote:But, would that be efficient?Everytime, a new message posted we have to add it to the database.I believe writing to a database will take longer time than writing to a file (please correct me if this is wrong).