aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/arel/tree_manager.rb
Commit message (Collapse)AuthorAgeFilesLines
* Handle UPDATE/DELETE with OFFSET in ArelRyuta Kamizono2018-10-011-0/+5
|
* Handle DELETE with LIMIT in ArelRyuta Kamizono2018-09-301-0/+29
| | | | | | | | | | | | | | | | | | MySQL supports DELETE with LIMIT and ORDER BY. https://dev.mysql.com/doc/refman/8.0/en/delete.html Before: ``` Post Destroy (1.0ms) DELETE FROM `posts` WHERE `posts`.`id` IN (SELECT `id` FROM (SELECT `posts`.`id` FROM `posts` WHERE `posts`.`author_id` = ? ORDER BY `posts`.`id` ASC LIMIT ?) __active_record_temp) [["author_id", 1], ["LIMIT", 1]] ``` After: ``` Post Destroy (0.4ms) DELETE FROM `posts` WHERE `posts`.`author_id` = ? ORDER BY `posts`.`id` ASC LIMIT ? [["author_id", 1], ["LIMIT", 1]] ```
* Arel: :nodoc: allMatthew Draper2018-02-241-1/+1
|
* Arel: rubocop -aMatthew Draper2018-02-241-3/+4
|
* Merge Arel into Active RecordMatthew Draper2018-02-241-0/+37