You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now we initialize beanie and mongodb in main.py. We set recreate_views=False so that beanie doesn't try to recreate the views in every uvicorn worker, throwing an error in the process. This means that if the logic of a view change, we need to manually upgrade the view.
Long term the initialization of beanie and mongodb should happen in a separate script outside of the app.
The text was updated successfully, but these errors were encountered:
Right now we initialize beanie and mongodb in main.py. We set
recreate_views=False
so that beanie doesn't try to recreate the views in every uvicorn worker, throwing an error in the process. This means that if the logic of a view change, we need to manually upgrade the view.Long term the initialization of beanie and mongodb should happen in a separate script outside of the app.
The text was updated successfully, but these errors were encountered: