Simple Auth With Passport-Local and deSerializeUser problem
问题 After reading an excellent description here on how deserialize and serialize user works in the Passport flow Understanding passport serialize deserialize I'm concerned about the performance impact of having deSerializeUser called on every request. All the examples I've seen (see below for one) have deserializeUser calling what looks like a database User.findById to do that work. Assuming you are not using a cdn for all your assets, that means many many database calls on every page load. My