[DiscordArchive] are those queries "all over the place" in ObjectMgr::Load*() methods mostly ?
[DiscordArchive] are those queries "all over the place" in ObjectMgr::Load*() methods mostly ?
Archived author: ModoX • Posted: 2021-01-04T14:27:22.751000+00:00
Original source
Theres no need to use prepared statements with static WHERE terms.
Archived author: ModoX • Posted: 2021-01-04T14:28:22.616000+00:00
Original source
PreparedStatements are mostly used to prevent SQL Injection and in queries where it is obv not possible we must not use them
Archived author: ModoX • Posted: 2021-01-04T14:34:38.759000+00:00
Original source
However when a query is executed multiple times prepared statements are a bit faster in terms of performance iirc
Archived author: M'Dic • Posted: 2021-01-04T14:49:03.109000+00:00
Original source
Tbh. That is going to be unavoidable and a bit impossible to make all queries be in one place.