On 01/16/2013 02:04 PM, Dave Aronson wrote:
On Tue, Jan 15, 2013 at 5:25 AM, Werner <[email protected]> wrote:
Form entries are stored but on reload it gives me tons of:
CACHE (0.0ms) SELECT `hours`.* FROM `hours` WHERE `hours`.`id` = 189
LIMIT 1
That sounds like you could benefit from a .includes on your initial
load. Google "N + 1 queries problem".
-Dave
I don't think so. The CACHE entries mean that the op did the same fetch
as he had recently done and the data was still around and was used with
no db access.
Norm
--
You received this message because you are subscribed to the Google Groups "Ruby on
Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.