I had a project where I was doing a lot of:
NavigationLink.find_all_by_url('/a')
So I tried to reduct the queries by doing:
NavigationLink.find_all_by_url(['/a','/b'])
Passing it an array where it can select multiple results. This exploded
and I didn't think it should so I made this patch and you can now do
this.
I notice the MySQL store redefines quote (mass file search) but didn't
change it so this will still explode with the MySQL store. Since nothing
is lost by this, I submit the patch anyway in the knowledge the
eminently capable Bryan Soto will probably sort this out in MySQL ;)
Includes my earlier fix to my first patch as it hasn't appeared in
glycerin yet and darcs forced me to submit it again.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: finder-arrays.patch.bz2
Type: application/x-bzip
Size: 4946 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/nitro-general/attachments/20060214/d44e52fc/attachment.bin