duplicate query to the user table
quocvu opened this issue · comments
Thanks for this great example. I got it to work as intended, however, I noticed after a successful login, every time we load a page, there are 2 queries issued to the user table. It is a SELECT * ... WHERE id = xyz.
I understand that we want to fetch the user record from the DB based on the user id stored in the session, but how can we eliminate one query?