diff options
author | tsukasaoishi <tsukasa.oishi@gmail.com> | 2014-08-07 22:41:23 +0900 |
---|---|---|
committer | tsukasaoishi <tsukasa.oishi@gmail.com> | 2014-08-07 22:41:23 +0900 |
commit | 8aead812baaacb962c15d0ab27bdaf4c388b7d59 (patch) | |
tree | bf078e1343d46d846770809a300452cafccb5b92 /activerecord/lib/active_record/association_relation.rb | |
parent | 9a0e0594ab919b5b1a3a85bbe90f4a44922b1d84 (diff) | |
download | rails-8aead812baaacb962c15d0ab27bdaf4c388b7d59.tar.gz rails-8aead812baaacb962c15d0ab27bdaf4c388b7d59.tar.bz2 rails-8aead812baaacb962c15d0ab27bdaf4c388b7d59.zip |
Tables existence check query is executed in large quantities
When Rails starts, tables existence check query is executed
number of models.
In case of mysql,
SHOW TABLES LIKE 'table1';
SHOW TABLES LIKE 'table2';
SHOW TABLES LIKE 'table3';
...
SHOW TABLES LIKE 'table999';
Add process to get the names of all tables by one query.
Diffstat (limited to 'activerecord/lib/active_record/association_relation.rb')
0 files changed, 0 insertions, 0 deletions