I'm trying to provide an HTTP API for my app that is read-only (for replication purposes ) DB queries I feel that whenever my app crashes repeatedly while requesting B / C, even when I do a DB query, the session table is trying to update. This does not happen when I return some text without killing the database for information.
class APIController & lt; See AplicationController def data = product.fund (param [[id]). To_json # will fail the data = {: one => 1 ,: 2 = & gt; 2} .to_json # will be successful in answering; Format | Format.html {Render: JSON = & gt; Data} End And End End
How can I prevent this from touching the session table on this request (currently issuing updates on the updated_at field for that session). Thank you.
What is the rail? In Rail 2.3, sessions are lazy-loaded, so check any code (possibly in a before_filter
) in the ApplicationController and your plug-in, which are reaching any value in your session. You want to avoid that filter for this view
operation.
Comments
Post a Comment