title: Lifetime of objects in a flask app
body: <p>I have a web app that retrieves data from a database and displays it on a UI. I have a class called <code>table</code> that handles the database requests based on the URL variables. </p>
  
  <p>My question is: Does flask recycle objects when a new URL is requested? Or does it keep the objects in memory until the user logs out?</p>
  
  <p>Should I have one table object and just update the query every time the URL changes? Or should I just create a new object?</p>