Re: [Rails] Suggestions on how I should handle licensing in a session

2020-03-13 Thread Walter Lee Davis
That's what I would do. It's very low-drag that way. If you are horizontally-scaled, then you need to ensure that you have a central session store. Walter > On Mar 13, 2020, at 10:16 AM, John Sanderbeck wrote: > > In an app I wrote I implemented licensing for the modules in the app. > >

[Rails] Suggestions on how I should handle licensing in a session

2020-03-13 Thread John Sanderbeck
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