mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-22 08:08:25 +00:00
[Performance] Character tribute is now bulk saved (#3340)
* [Performance] Character tribute is now bulk saved This pull request combines individual `character_tribute` queries during `Save()` into one. This pull request also adds a primary key of `id` to `character_tribute` and renames the pre-existing `id` column to `character_id`, this allows us to use repositories for this table. * Update zonedb.cpp * Update zonedb.cpp
This commit is contained in:
+1
-1
@@ -713,7 +713,7 @@ bool Client::Save(uint8 iCommitNow) {
|
||||
|
||||
p_timers.Store(&database);
|
||||
|
||||
database.SaveCharacterTribute(CharacterID(), &m_pp);
|
||||
database.SaveCharacterTribute(this);
|
||||
SaveTaskState(); /* Save Character Task */
|
||||
|
||||
LogFood("Client::Save - hunger_level: [{}] thirst_level: [{}]", m_pp.hunger_level, m_pp.thirst_level);
|
||||
|
||||
Reference in New Issue
Block a user