Help in ActiveRecord find with include on conditions?

– Shikher Aug 17 '10 at 13:48 @shikher : corrected :) – Bragboy Aug 17 '10 at 13:49.

I think you can't do that via purely ruby syntax. I can only think of the following (ugly) way Coach. Find(:all, :conditions => "attribute_id IS NULL AND EXISTS(SELECT * FROM qualifications WHERE coach_id = coaches.Id)").

I just spent today putting into practice I just spent today putting into practice most of the ideas suggested here, especially caching using class variables, memcached sessions, and not using slow helpers. With extensive testing, my production server now serves up pages 31.8% faster!63.8 seconds versus 93.5 to complete a test suite I created. 'Include' can improve performance?

I tried, but it seems no performance improvement at all. Some days ago I made a patch to add a :noselect option to use with the ActiveRecord::find method:let's say you have a table with 5 columns, and you want to select 4 of them:User. First(:select => "col_1, col_2, col_3, col_4")with my patch you can do this:User.

First(:noselect => "col_5")maybe it's not a big improvement in speed but it can help in tables with a bunch of columns. Well that's it.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions