This project is archived and is in readonly mode.
Add :preload option to find
Reported by Will Bryant | January 11th, 2010 @ 10:40 AM
This patch adds support for a :preload option, which functions much like the "new" :include path - but it will always use that rather than falling back to the old join-based :include path if the query options reference other tables.
Thus, it makes it possible to preload polymorphic associations even if you have some table conditions, other joins, or a multi-table :select option, and ensures you don't get O(n^m|m = number of loaded tables) resultsets in these conditions. It supports using both :include and :preload in one find, which is quite useful if you want to include to restrict the resultset but preload to efficiently load associations.
This should enable us to pass the bitter, cold evenings until 3.0 brings new association love.
Comments and changes to this ticket
-
Rohit Arondekar October 9th, 2010 @ 03:16 AM
- State changed from new to stale
- Importance changed from to Low
Marking ticket as stale. If this is still an issue please leave a comment with suggested changes, creating a patch with tests, rebasing an existing patch or just confirming the issue on a latest release or master/branches.
-
Will Bryant December 9th, 2010 @ 09:52 AM
It is still an issue on 2-3-stable. The patch does contain tests. It still applies cleanly to 2-3-stable.
(master doesn't need this though.)
-
Rohit Arondekar December 9th, 2010 @ 10:11 AM
Thank you for responding Will. Unfortunately this patch changes the user facing API. Since 2.3 is only being supported for bug fixes this patch cannot be applied any longer.
-
Will Bryant December 9th, 2010 @ 10:54 AM
Fair enough. The patch is still here for people who want to apply it, so we can close this ticket.
-
gfh February 17th, 2011 @ 06:48 AM
Good Puma shoes sale information for Puma shoes fans: Yesterday, German sportswear maker Cheap Running Shoes purchased effectively lot of money Brands. The transaction entails the Cobra brand, too as linked inventory, intellectual house and endorsement contracts. It also helps make puma speed cat Shoes . They provide you with the utmost game and support all through the feet.You can happen around several types of basketball sneakers such as high-top,low-top and mid-top.The Puma shoes online and boots give you best ankle support will support want you to obtain steadiness.
As we konw,Trail Puma Drift Cat Shoes black, Trail Puma future cat ShoesWhite Black? 50 many years backshore are actually released within a great accomplishment. Trail Running Shoes speed cat shoes?go in add-on to King Pele into planet tournament finals, bottom tennis discs matchrs within pasture inhabit an vital area in hold out in Wimbledon Dun; Its working firms have premier manufacturers and major marketplace positions in distilled spirits, residence and security, and golf products. The reply go all through the Cheap puma shoes on sale-here you are able to happen around several distcoun.puma shoes on sale .
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>
People watching this ticket
Attachments
Referenced by
- 3446 tables_in_string matches literal string containing dot If you're bitten by this in 2-3-stable apps you can eithe...