diff options
author | ariel- <ariel-@users.noreply.github.com> | 2017-03-01 22:20:53 -0300 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2019-08-17 20:04:14 +0200 |
commit | d131bd1da0bf1b835ef912713dd7444361aa0089 (patch) | |
tree | eaf996d245eb0d7b1ad525841050a1fb4336dbb9 /src/server/scripts/ScriptLoader.cpp.in.cmake | |
parent | 60663d1374beef3103f4787152654034fa4a8897 (diff) |
Core/Database: Prepared statement parameter preallocation (#18999)
- Pass prepared statement size to the helper class to prevent runtime resizing.
- Rename CheckValidIndex -> AssertValidIndex
- Cached prepared size on the worker pool as it's shared among all connections
- Cached query data only for each connection, done lookup in map instead of possibly creating a new element
- Kill the prepared statement map, and store raw sql string on the MySQLPreparedStatement class
(This info is only used for logging, and there is no need of keeping a second container just for it)
(cherrypicked from affee140c6a8e1e9358be2aa0d0088ede218acaa)
Diffstat (limited to 'src/server/scripts/ScriptLoader.cpp.in.cmake')
0 files changed, 0 insertions, 0 deletions