码迷,mamicode.com
首页 > 其他好文 > 详细

Active Record Query Interface 数据查询接口(界面)

时间:2017-12-17 13:25:20      阅读:199      评论:0      收藏:0      [点我收藏+]

标签:trie   exp   difficult   order   col   blog   eager   together   use   

http://guides.rubyonrails.org/active_record_querying.html

 

This guide covers different ways to retrieve data from the database using Active Record.

After reading this guide, you will know:

?How to find records using a variety of methods and conditions.

?How to specify the order, retrieved attributes,grouping, and other properties of the found records.

? How to use eager loading(预先积极加载) to reduce the number of database queries needed for data retrieval.

? How to use dynamic finder methods.

? How to use method chaining to use multiple Active Record methods together. 

? How to check for the existence of particular records

? How to perform to do sth useful or difficult various calculations on Active Record models.

? How to run EXPLAIN on relations.(如何在关联上跑explain命令) 

 


 

Active Record Query Interface 数据查询接口(界面)

标签:trie   exp   difficult   order   col   blog   eager   together   use   

原文地址:http://www.cnblogs.com/chentianwei/p/8051664.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!