Hi Guys,
i want to add a Data Model to my pyramid Web Application. Currently i create the Data Model everytime when a view is accessed.
This does not work in my Application due performance problems. I want to have a Data Model that is always accessable, for all views i have.
Now i wonder what the best way is to transport my data model to the view. I researched that i can use the
config.add_request_method to add a Property or a callable. But as i understand the request Object creates the new Property/Callable everytime it is accessed.
That would be the same thing i already have. I just want to create the Data Model at the startup and then use it for all my Views.
So any suggestions what i can use?