save all message

Need help with SmartFoxServer? You didn't find an answer in our documentation? Please, post your questions here!

Moderators: Lapo, Bax

ernivan
Posts: 59
Joined: 11 Aug 2010, 14:53

save all message

Postby ernivan » 16 Aug 2010, 16:30

Hi

I need to save all chat message , is H2 database so fast to do that ?

thanks
User avatar
BigFIsh
Posts: 1698
Joined: 25 Feb 2008, 19:26
Location: New Zealand

Postby BigFIsh » 17 Aug 2010, 06:54

H2Database is made purely by java meaning it is fast, and since the H2Database is located on the same machine as the server - there should be no problem storing your chat messages.
Smartfox's forum is my daily newspaper.
ernivan
Posts: 59
Joined: 11 Aug 2010, 14:53

Postby ernivan » 21 Aug 2010, 16:51

hi

what is the best for you about performance :

save all message on files (one for a day) with _server.writeFile() (append true) , or storage on H2Database ?

thanks
User avatar
BigFIsh
Posts: 1698
Joined: 25 Feb 2008, 19:26
Location: New Zealand

Postby BigFIsh » 21 Aug 2010, 21:35

If storing all chat messages is for moderatoring purposes, then I would use _server.writeFile() to write all messages to files. And since it's only once a day, I don't see any performance issues. Additionaly, it would be easier to fetch and read from text files - and deleting them as well.
Smartfox's forum is my daily newspaper.

Return to “SmartFoxServer 1.x Discussions and Help”

Who is online

Users browsing this forum: No registered users and 55 guests