Re: efficient ajax calls using flash?

Jason Norris
2006-10-19T12:20:14Z

The other option would be to store it in the session(not the flash -
that doesn''t stick around between requests), but if you''re
using the
database as the session store, then it''s the same thing. You Could also
insert the ID or whatever you need to store into the AJAX params, that
way it would be "stored" in the HTML on the client machine.

Eric Gross wrote:
> In other words, is it worth using the select statement from a result
> statement instead of requerying that specific item using find(id)?
>
> Eric Gross wrote:
>
>> Hey guys,
>>
>> I do an ajax call to update a div in my view with a different partial.
>> The new partial uses data that was originally queried when the page was
>> loaded. It is kinda redundant to have to requery that record again.
>>
>> Is the best solution to use flash to pass the result set. I guess, my
>> question is,
>>
>> Does flash get stored on the client side, or on the server side.
>>
>> If its only the client side then flashing would make sense.
>>
>> On the other hand, if I am just requerying the database using the
"ID"
>> field, isn''t that ultra fast and takes very little resources
where it
>> wont matter if I just requery for that specific result?
>>