Tests I've run, I am suspicious of memory leaks but have no proof
I already asked Scatman at initial design to consider customizable intervals, but for this first round, it's static.
Moderator: Team Members
I don't think it would be a good idea. EQEmu uses shared memory to accomplish this, but I think it is more of a headache that it is worth. The benefit of separating World and Zone would be that you could run the zones on another computer (which btw thereby makes the shared memory advantage invalid), but we could link multiple worlds together to create the same concept. When I was designing the emu I specifically decided to avoid the shared memory method that EQEmu used and use threads instead. I think the server is fairly stable at this point in it's life cycle and it will only grow more stable as time goes on. I stand by my decision and think it is correct. However, if anyone has a problem with the design please let me know so that I can come up with a solution if there is a problem. I'm not going to get pissed off for discussing something that I disagree withJohn Adams wrote: I personally haven't had the nerve to ask LE what he thinks about splitting World/Zone server
Performance considerations:
Please note that REPLACE INTO is a much slower performer than an UPDATE statement. Keep in mind that a REPLACE INTO requires a test on the keys, and if a matching unique key is found on any or all columns, a DELETE FROM is executed, then an INSERT is executed. There's a lot of management of rows involved in this, and if you're doing it frequently, you'll hurt your performance unless you simply cannot do with any other syntax.
The only time when I can see where you'd actually need a REPLACE INTO is when you have multiple unique constraints on a table, and need to drop any rows that would match any of the constraints. Then REPLACE INTO becomes more efficient from DELETE FROM... INSERT INTO...
If you're looking at a single unique column table (Primary Key), please use UPDATE, or INSERT. Also, check out INSERT ... ON DUPLICATE KEY UPDATE... as an alternative if you're willing to stick to MySQL 4.1+
Code: Select all
INSERT INTO statistics (char_id, guild_id, stat_id, stat_value, stat_date) VALUES (1, 0, 1000, 18, 1243792314)
ON DUPLICATE KEY UPDATE char_id = 1, guild_id = 0, stat_id = 1000, stat_value = 17, stat_date = 1243792314;Users browsing this forum: No registered users and 0 guests