Posts: 2,175
Threads: 235
Joined: Sep 2009
Reputation:
0
only a question.. if every time player send a text i store it in mysql i can cause awesome lag?
Posts: 6,129
Threads: 36
Joined: Jan 2009
It depends on how much text is being stored.
I do this in a script I created and it's pretty much fine, but I haven't had large amounts of players to test it with, although there's 23,947 chatlog entries.
Posts: 2,593
Threads: 38
Joined: Aug 2007
Reputation:
0
I wouldn't suggest doing it every time a player speaks but rather every 10th or 20th time a person speaks and/or every minute
Posts: 10,066
Threads: 38
Joined: Sep 2007
Reputation:
0
MySQL is designed to handle large amount of data, and insert queries like the chat shouldn't cause much trouble. It takes less than a millisecond to execute the query. Fetching a single page on this forum already takes an average of 12 queries.