[DiscordArchive] are you sure those are writes, and not reads?
[DiscordArchive] are you sure those are writes, and not reads?
Archived author: Takenbacon • Posted: 2025-08-19T22:55:15.096000+00:00
Original source
well first of all the db saves look to be duplicated. I don't think it's the logger doing that
Archived author: Takenbacon • Posted: 2025-08-19T22:55:27.604000+00:00
Original source
does the playerbots script do a SaveToDB on logout by chance?
Archived author: Revision • Posted: 2025-08-19T22:56:31.352000+00:00
Original source
It would but it wouldn't have cycled the bots that fast, and unfortunately the queries include the startup sequence and bot login
Archived author: Revision • Posted: 2025-08-19T23:00:32.433000+00:00
Original source
As far as I know the bots are saved just like players and playerbots doesn't implement another save on their end. I could be wrong.
Archived author: Takenbacon • Posted: 2025-08-19T23:00:33.775000+00:00
Original source
I don't know anything about playerbots but I'm seeing a lot of SaveToDB calls in the code
Archived author: Revision • Posted: 2025-08-19T23:01:33.614000+00:00
Original source
I don't know if this is playerbots or azerothcore, I'm not knowledgeable enough to make that call. It could very well be something playerbots causes. It's impossible to test unless you have thousands of friends who are able to join the server to compare it.
Archived author: Revision • Posted: 2025-08-19T23:02:27.803000+00:00
Original source
At one point I thought it was the writes to playerbots_random_bots but they seem to slow down over time
isablePlayerBotArchived author: Takenbacon • Posted: 2025-08-19T23:02:41.537000+00:00
Original source
PlayerbotHolder::OnBotLogin
PlayerbotHolder::LogoutPlayerBot
PlayerbotHolder:
isablePlayerBot
all call a Player::SaveToDB (on top of the core doing it as well it seems)
Archived author: Takenbacon • Posted: 2025-08-19T23:02:59.421000+00:00
Original source
definitely not AC, I just verified locally all is good
Archived author: Revision • Posted: 2025-08-19T23:04:03.259000+00:00
Original source
If I boot the server up without rndbots it has a negligible write speed, but I'd be interested to know how it works if there are say.. 2000 actual players. Just as a comparison. Maybe I should try removing those SaveToDB calls in playerbots (that are run core-side anyway) to see what happens