def __exit__(self, t, value, traceback):
        self.cls._meta["db_alias"] = self.ori_db_alias
        self.cls._collection = self.collection
Quickly heurestic search over possible plans to find good memory plan.
dataset/ETHPy150Open MongoEngine/mongoengine/mongoengine/context_managers.py/switch_db.__exit__--crossover with--dataset/ETHPy150Open dmlc/mxnet-memonger/memonger.py/search_plan