メソッド | 機能 | キャッシュ利用 |
---|---|---|
count | SQLのCOUNT を使ってカウント |
しない |
length | SQLの実行結果の行数 をカウント |
する |
size | SQLのCOUNT を使ってカウント |
する |
ActiveRecordのcountとlengthとsize |
More than 5 years have passed since last update.
[WIP]ActiveRecordでのレコード数のカウント方法の差(count, length, size)
Last updated at Posted at 2019-03-02
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme