mongoengine
mongoengine copied to clipboard
Connection multiple database with switch_db Issue
Hi Team,
We are developing a application [ Django + RestAPI + Mongoengine ] where we will be using separate db for each user's .So there will be lots of db connection will take places.
I have found the way to connecting with different database with the switch_db method. But the Issue now is , when two or more people hit the same API ( during the time of multiple API hit ) I'm facing an issue like " Connection with alias="xxxxxxxxxxxxxx" has not been defined " .
Kindly help me to resolve this , looking for a helping hand .
NOTE:
1.Default connection are placed properly. 2.Each model class is provided with the {meta: "xxxxx"} db alias details.
Thank you .