diff options
author | Sean Griffin <sean@seantheprogrammer.com> | 2017-07-18 13:04:47 -0400 |
---|---|---|
committer | Sean Griffin <sean@seantheprogrammer.com> | 2017-07-18 13:06:43 -0400 |
commit | 8ebe1f2feed30809abb3f114242dda7379e66e4b (patch) | |
tree | e74ea295436ad469fd2140ad73b057b929655ae7 /activerecord/test/fixtures | |
parent | 58c567adaeba1208522640e7890db9e07cbb768a (diff) | |
download | rails-8ebe1f2feed30809abb3f114242dda7379e66e4b.tar.gz rails-8ebe1f2feed30809abb3f114242dda7379e66e4b.tar.bz2 rails-8ebe1f2feed30809abb3f114242dda7379e66e4b.zip |
Don't convert dates to strings when using prepared statements in mysql
Dates are able to be natively handled by the mysql2 gem. libmysql (and
the wire protocol) represent each portion of the date as an integer,
which is significantly faster to encode and decode. By passing the Ruby
date objects through directly, we can save a good bit of time and
memory.
Diffstat (limited to 'activerecord/test/fixtures')
0 files changed, 0 insertions, 0 deletions