Ruby on Rails Friday, March 13, 2020

In an app I wrote I implemented licensing for the modules in the app.

Right now, I query the database every time the license is checked which is a ton of SQL calls per user per session...

How can I limit the lookup to once per session?

Just store it in the session hash?

John

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/9bbe311f-fcda-45bb-8357-10f14ebde9ea%40googlegroups.com.

No comments:

Post a Comment