Currently, I believe that I'm creating multiple models representing the various mongoose/typegoose schemas that are loaded at the same time. If I'm understanding thing correctly, this could cause issues like race conditions. I believe that schema models like these would be good candidates for server-wide singletons, but I need to investigate that idea further.
Currently, I believe that I'm creating multiple models representing the various mongoose/typegoose schemas that are loaded at the same time. If I'm understanding thing correctly, this could cause issues like race conditions. I believe that schema models like these would be good candidates for server-wide singletons, but I need to investigate that idea further.