There's way to exclude database connection for the ORM with
FOUNDRY_RESET_CONNECTIONS=connection1,connection2
FOUNDRY_RESET_OBJECT_MANAGERS=manager1,manager2
But we cannot exclude ODM connection for the moment.
It would be nice to add
FOUNDRY_RESET_ODM_CONNECTIONS
FOUNDRY_RESET_ODM_OBJECT_MANAGERS