?
2012-07-01 04:36:56 UTC
I would like to know how the mysql database schema is designed for storing private chat messages between 2 users. Like if i insert the every line of a chat as a new record, database will grow very huge and it may lead to server crash or slow working.
I tried to store the full message in a xml file and later when chat is completed i dumpted that file into database. But here i have a problem at maintaining the history of the chat. And this process will really slows the app.
Or can i store the messages at php sessions and finally dump into database. Because in some article i read that max storage of php session is 128MB
I'm still worried about the Database structure.
So whats the best way to store? I'm thinking how Google [Gtalk] will store the chat message? Which is very fast and user friendly.
So please suggest me the best way.
Thank you..